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-14. Debugging Options
Option

(links to explanatory section)

Definition
-dA Add extra debug information to generated assembly
-fdiagnostics-show-caret Controls 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-loclist Include 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.