> > It's quite interesting, it seems like a bug in gcc.
> > 
> > Please compile this with -O2 and -O2 -fno-gcse and check my sanity:
> 
> You are sane:
> 
>     % gcc -o bug bug.c
>     % ./bug 
>     Aborted (core dumped)

I sent it to gcc-bugs (the problem is still there in 2.95.2) and
got the following reply:

> Thanks for your bug report. The mainline compiler (2.96 20000302
> (experimental)) compiles this correctly, so the bug appears to be
> fixed.
> 
> Regards,
> Martin

I think I'll add something to configure to use the -fno-gcse flag if it's
supported.

Reply via email to