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

Andreas Jaeger aj@suse.de
Mon Jun 23 06:08:00 GMT 2003


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030623/0c5063a4/attachment.sig>


More information about the Gcc-patches mailing list