<div dir="ltr">We could make -g1 into -gline-tables-only. It at least matches the ibm definition. We won't include external variables and do have line numbers so it's not quite the same as the documented gcc bits, but those could probably be changed at this point anyhow. I'll talk to the gcc guys on that side, but I'll happily approve a patch making -g1 an alias for -gmlt/-gline-tables-only<div><br></div><div>-eric</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 17, 2014 at 10:37 AM, Hal Finkel <span dir="ltr"><<a href="mailto:hfinkel@anl.gov" target="_blank">hfinkel@anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Debugging flags are not my area of expertise, but GCC's manual says about -g1:<br>
<br>
[from GCC's man page]<br>
Level 1 produces minimal information, enough for making backtraces in parts of the program that you don't plan to debug.<br>
This includes descriptions of functions and external variables, but no information about local variables and no line numbers.<br>
[end from GCC's man page]<br>
<br>
and IBM's manual for xlc says about -g1:<br>
<br>
[from IBM's man page]<br>
Generates minimal read-only debugging information about line numbers and source file names. No program state is preserved.<br>
[end from IBM's man page]<br>
<br>
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.<br>
<br>
Thanks again,<br>
Hal<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Hal Finkel<br>
Assistant Computational Scientist<br>
Leadership Computing Facility<br>
Argonne National Laboratory<br>
</font></span></blockquote></div><br></div>