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.
Option | Definition |
---|---|
-dA | Add extra debug information to generated assembly. |
-fdiagnostics-show-caret | Controls information shown in diagnostics. |
-f[no-]eliminate-unused-debug-symbols | Eliminate 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. |
-g | Produce debugging information. |
-mno-info-linker | Suppresses some linker advisory messages. |
-Q | Print function names and statistics from each pass. |
-save-temps[=dir] | Don’t delete intermediate files. |