GCC Newspaper
OCTOBER 6, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
configure

Fix assembler check for --gdwarf-4 option

Ensures assembler check for DWARF 4 debug info works across architectures.

The configuration script’s check for assembler support of the --gdwarf-4 option used a hard-coded ret instruction. This instruction is not universally supported across all architectures, such as ARM. The patch replaces ret with a generic $insn placeholder, making the check more portable and reliable.

In Details

The configure script's test for DWARF 4 assembler support relied on a specific instruction sequence ending in ret. This commit generalizes the check by using $insn, accommodating architectures where ret is not the appropriate or available instruction for the test's purpose.

For Context
DWARF
A standard file format that represents debugging information within compiled programs. DWARF 4 is a specific version of this standard.
assembler
A program that translates assembly language source code into machine code (object code).
configure script
A script run at the beginning of the build process to adapt the source code to the specific characteristics of the target system and environment.
Filed Under: configuredwarfassembler