-g
-ggdb
-gdwarf
-gdwarf-version
-gstabs
-gstabs+
-gxcoff
-gxcoff+
-gvms
-glevel
-ggdblevel
-gstabslevel
-gxcofflevel
-gvmslevel
-fno-eliminate-unused-debug-symbols
-femit-class-debug-always
-fno-merge-debug-strings
-fdebug-prefix-map=old=new
-fvar-tracking
-fvar-tracking-assignments
-gsplit-dwarf
-gdescribe-dies
-gpubnames
.debug_pubnames
and .debug_pubtypes
sections.-ggnu-pubnames
.debug_pubnames
and .debug_pubtypes
sections in a formatsuitable for conversion into a GDB index. This option is only usefulwith a linker that can produce GDB index version 7.-fdebug-types-section
.debug_types
section instead of making them part of the.debug_info
section. It is more efficient to put them in a separatecomdat section since the linker can then remove duplicates.But not all DWARF consumers support .debug_types
sections yetand on some objects .debug_types
produces larger instead of smallerdebugging information.-grecord-gcc-switches
-gno-record-gcc-switches
-gstrict-dwarf
-gno-strict-dwarf
-gas-loc-support
.loc
directives.It may then use them for the assembler to generate DWARF2+ line numbertables.-gno-as-loc-support
-gas-locview-support
view
assignmentand reset assertion checking in .loc
directives.-gno-as-locview-support
-gcolumn-info
-gno-column-info
-gstatement-frontiers
-gno-statement-frontiers
is_stmt
markers in the line number table. This is enabled by default whencompiling with optimization (-Os, -O, -O2,…), and outputting DWARF 2 debug information at the normal level.-gvariable-location-views
-gvariable-location-views=incompat5
-gno-variable-location-views
-ginternal-reset-location-views
-gno-internal-reset-location-views
view number mismatch
. This is only enabledon ports that define a reliable estimation function.-ginline-points
-gno-inline-points
-gz[=type]
-femit-struct-debug-baseonly
-femit-struct-debug-reduced
-femit-struct-debug-detailed[=spec-list]
-fno-dwarf2-cfi-asm
.eh_frame
sectioninstead of using GAS .cfi_*
directives.-fno-eliminate-unused-debug-types