[Bug target/66930] [5 Regression]: gengtype.c is miscompiled during stage2

glaubitz at physik dot fu-berlin.de gcc-bugzilla@gcc.gnu.org
Thu Jul 23 08:03:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66930

--- Comment #7 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
(In reply to Kazumoto Kojima from comment #6)
> Created attachment 36040 [details]
> .i file for gengtype.c
> 
> I've confirmed a miscompile for gengtype.c with -O1 on my 5/6
> compilers.

Just for confirmation. Removing -O1 and defaulting to -O2 again lets the
current gcc-5 snapshot build past this particular issue.

Interesting that this is triggered with -O1 and not -O2. I'd expected that to
be the other way around.

> BTW, I guess that
> 
> > * Build with -O1 on sh4 (try to work around PR target/66358).
> 
> will open a can of worms :-)

What do you mean? Using -O1 will trigger all kinds of bugs? Or is it rather
about PR target/66358?

Adrian



More information about the Gcc-bugs mailing list