This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix latent bug in dwarf2out.c (ICE)
- From: Josef Zlomek <zlomj9am at artax dot karlin dot mff dot cuni dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 23 Jun 2003 07:20:46 +0200
- Subject: Re: [patch] Fix latent bug in dwarf2out.c (ICE)
- References: <20030622204546.GA31921@artax.karlin.mff.cuni.cz>
> this patch fixes an ICE in dwarf2out.c when compiling the following
> testcase with "-g" on i386, x86-64 and ia-64 (it was a generic bug).
>
> typedef struct _foo foo;
> struct _foo {
> struct _moo moo;
> };
>
> The tree for "moo" has type error mark. In gen_field_die, there was no
> test whether the type is error mark and so it would like to emit the
> die which finally segfaulted in function convert.
> With this patch we return from gen_field_die if the type is error mark.
>
> Bootstrapped mainline x86-64, regtesting in progress.
>
> OK for mainline and 3.3 branch if regtesting passes?
Regtested with no new failures.
Josef
>
> 2003-06-22 Josef Zlomek <zlomekj@suse.cz>
>
> * dwarf2out.c (gen_field_die): Return if type of decl is error mark.