This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Add new -gmlt option for min. debug info with line tables (issue 4440072)
- From: mrich30 at googlemail dot com
- To: ccoutant at google dot com, jason at redhat dot com, pinskia at gmail dot com, joseph at codesourcery dot com, dnovillo at google dot com, wilson at tuliptree dot org
- Cc: gcc-patches at gcc dot gnu dot org, reply at codereview-hr dot appspotmail dot com
- Date: Sun, 28 Jul 2013 16:14:25 +0000
- Subject: Re: [patch] Add new -gmlt option for min. debug info with line tables (issue 4440072)
- Reply-to: ccoutant at google dot com, jason at redhat dot com, pinskia at gmail dot com, joseph at codesourcery dot com, dnovillo at google dot com, wilson at tuliptree dot org, mrich30 at googlemail dot com, gcc-patches at gcc dot gnu dot org, reply at codereview-hr dot appspotmail dot com
I'm not aware of any significant use of -g1. It is very rare for
anyone
to mention it in a bug report for instance. Once upon a time (before
2002-03-19), it was used for compiling libgcc, but that was just to
ensure that it got tested somewhere. From my Cisco experience, I
would
agree that backtraces without line numbers are not very useful. It
would be OK with me if these changes were added to -g1 instead of
creating a new -gmlt option.
Jim
Is anyone still working on this?
It would be very useful to include this option in gcc trunk, and have
either -g1 or -gmlt emit line number information. This saves
considerable space and time during compilation for large builds where
full debug info is not needed, but line numbers in stack traces are
still helpful (e.g. regression testing opt builds)
If I can help somehow, please let me know how.
Best regards,
Martin
https://codereview.appspot.com/4440072/