This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix latent bug in dwarf2out.c (ICE)


Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz> writes:

> Hi,
>
> 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?

Please commit the testcase to the testsuite also!

Thanks,
Andreas
-- 
 Andreas Jaeger, SuSE Linux AG, aj@suse.de, http://www.suse.de/~aj
  GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]