This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [google/gcc-4_7] Fix ICE in output_pubnames where union contains a ctor
- From: Sterling Augustine <saugustine at google dot com>
- To: Cary Coutant <ccoutant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 17 Aug 2012 15:19:18 -0700
- Subject: Re: [google/gcc-4_7] Fix ICE in output_pubnames where union contains a ctor
- References: <20120817220951.622DEE0426@ccoutant.mtv.corp.google.com>
On Fri, Aug 17, 2012 at 3:09 PM, Cary Coutant <ccoutant@google.com> wrote:
> This patch is for the google/gcc-4_7 branch. I'll submit it for trunk
> after the Fission patches have gone in.
>
> When adding names to the pubnames table (-gsplit-dwarf or -gpubnames),
> a method within a union may not get handled properly, sometimes resulting
> in an internal compiler error in output_pubnames().
>
> This patch fixes the problem by using the existing predicate,
> class_scope_p, instead of is_class_die, which failed to test for
> a union type.
OK for Google 4.7
Sterling