This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [debug] Introduce -fno-debug-types-section flag
- From: Cary Coutant <ccoutant at google dot com>
- To: Mark Wielaard <mjw at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Tom Tromey <tromey at redhat dot com>, Roland McGrath <roland at hack dot frob dot com>, Jason Merrill <jason at redhat dot com>
- Date: Tue, 29 Mar 2011 11:04:39 -0700
- Subject: Re: [debug] Introduce -fno-debug-types-section flag
- References: <1301394032.24103.11.camel@springer.wildebeest.org>
> Some dwarf consumers (dwarves, systemtap and dwarflint) grok Dwarf V4,
> but not yet the new .debug_types section. To make it easier to use these
> tools with -gdwarf-4 this patch introduces a new
> -fno-debug-types-section flag and guards all code that is type unit
> specific with use_debug_types instead of a generic dwarf_version >= 4
> flag. IMHO this makes the code also slightly more readable. And it
> re-enables the usage of -feliminate-dwarf2-dups with -gdwarf-4. Although
> admittedly the value of that is probably pretty low. I found it helpful
> in debugging some issues with dwarf consumers and DW_FORM_ref_addr
> usage.
I can't approve the patch, but I think it's a good option to have and
the patch looks good to me.
-cary