grokfield miscompiled with -O9

Alexandre Oliva
Sat Jan 8 11:57:00 GMT 2000

On Jan  8, 2000, "Martin v. Loewis" <> wrote:

>> I wonder if this isn't the same bug as execute/991112-1.c.  That one has
>> to do with -O3 and not clearing an entire register, too.

> That could well be. Another commonality is that removing the unused,
> unrelated function corrects the code...

It is indeed caused by the same problem.  If only I had read this just
a second before checking in the testcase I've just posted...

Anyway, that testcase would risk hiding the bug if gcc got smarter
about inlining pointers to functions that can be proven constant.

Alexandre Oliva IC-Unicamp, Bra[sz]il
oliva@{,guarana.{org,com}} aoliva@{acm,computer}.org
** I may forward mail about projects to mailing lists; please use them

More information about the Gcc-bugs mailing list