[cfe-dev] Should -g1 mean -gline-tables-only?

Hal Finkel hfinkel at anl.gov
Fri Oct 17 10:37:22 PDT 2014


Hi,

Debugging flags are not my area of expertise, but GCC's manual says about -g1:

[from GCC's man page]
Level 1 produces minimal information, enough for making backtraces in parts of the program that you don't plan to debug.
This includes descriptions of functions and external variables, but no information about local variables and no line numbers.
[end from GCC's man page]

and IBM's manual for xlc says about -g1:

[from IBM's man page]
Generates minimal read-only debugging information about line numbers and source file names. No program state is preserved.
[end from IBM's man page]

this sounds to me a lot like what -gline-tables-only does. Is there a reason we don't alias -g1 to -gline-tables-only? Currently, the code in Clang::ConstructJob treats it just like -g.

Thanks again,
Hal

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory



More information about the cfe-dev mailing list