[llvm-commits] [llvm-gcc-4.2] r54260 - /llvm-gcc-4.2/trunk/gcc/c-common.c

Duncan Sands baldrick at free.fr
Fri Aug 1 00:52:53 PDT 2008


Hi,

> Removed an unnecessary condition check that seems to cause an optimization
> error that prevent building after r54240

I think this is completely the wrong approach.  If I
understand right, this code is being miscompiled.  The
correct solution is to fix the compiler, not to tweak
the code!  If it was being miscompiled by someone else's
compiler, then I'd be alright with tweaking the code.
But it's being miscompiled by our own compiler!
What's more, I was told on irc [*] that this only happens
(in stage3) if you bootstrap, not if you do a normal
build.  This suggests that llvm-gcc has miscompiled
itself, and the miscompiled llvm-gcc is then miscompiling
this code.  This is badness, and must be fixed.

So please revert your changes.

Thanks,

Duncan.



More information about the llvm-commits mailing list