5.7.6 Options for Debugging

The options tabulated below control the debugging output produced by the compiler and are discussed in the sections that follow.

Table 5-13. Debugging Options
OptionDefinition
-dAAdd extra debug information to generated assembly.
-fdiagnostics-show-caretControls information shown in diagnostics.
-f[no-]eliminate-unused-debug-symbolsEliminate debug information associated with any C/C++ symbol that has not been used in the program.
-fframe-base-loclistInclude a frame-base location list in debugging information.
-gProduce debugging information.
-mno-info-linker Suppresses some linker advisory messages.
-QPrint function names and statistics from each pass.
-save-temps[=dir]Don’t delete intermediate files.