This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR debug/60929: Fix a few ICEs and other problems with -fdebug-types-sections
- From: Richard Biener <rguenther at suse dot de>
- To: Cary Coutant <ccoutant at google dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 29 Apr 2014 11:03:06 +0200 (CEST)
- Subject: Re: PR debug/60929: Fix a few ICEs and other problems with -fdebug-types-sections
- Authentication-results: sourceware.org; auth=none
- References: <20140425230726 dot 0334B160579 at ccoutant dot mtv dot corp dot google dot com> <CAHACq4pWkVgLokhUDmic3THaLXnHtH1CDAe1-52VxUABjpT_SQ at mail dot gmail dot com>
On Mon, 28 Apr 2014, Cary Coutant wrote:
> What are the rules for backporting to 4.9.1? Should I backport this patch?
As it fixes a regression, yes. If you think it is safe to do so.
Richard.
> -cary
>
>
> > 2014-04-25 Cary Coutant <ccoutant@google.com>
> >
> > gcc/
> > PR debug/60929
> > * dwarf2out.c (should_move_die_to_comdat): A type definition
> > can contain a subprogram definition, but don't move it to a
> > comdat unit.
> > (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
> > (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
> > from original DIE.
> > (clone_tree_hash): Rename to...
> > (clone_tree_partial): ...this; change callers. Copy
> > DW_TAG_subprogram DIEs as declarations.
> > (copy_decls_walk): Don't copy children of a declaration into a
> > type unit.
> >
> > gcc/testsuite/
> > PR debug/60929
> > * g++.dg/debug/dwarf2/dwarf4-nested.C: New test case.
> > * g++.dg/debug/dwarf2/dwarf4-typedef.C: Add -fdebug-types-section flag.
>
>
--
Richard Biener <rguenther@suse.de>
SUSE / SUSE Labs
SUSE LINUX Products GmbH - Nuernberg - AG Nuernberg - HRB 16746
GF: Jeff Hawn, Jennifer Guild, Felix Imend"orffer