[Bug tree-optimization/33434] [4.3 Regression] -fipa-cp miscompilation
razya at il dot ibm dot com
gcc-bugzilla@gcc.gnu.org
Sun Sep 16 10:38:00 GMT 2007
------- Comment #1 from razya at il dot ibm dot com 2007-09-16 10:38 -------
(In reply to comment #0)
> Found this while trying to bootstrap with BOOT_CFLAGS="-O3 -fipa-cp" and it
> miscompiled libcpp/macro.c at the stage2. Appeared somewhere in between
> r122374 and r124593:
> /* { dg-do run } */
> /* { dg-options "-O3 -fipa-cp" } */
> int k;
> void f1 (int a, int b)
> {
> if (a)
> while (b --)
> k = 1;
> else
> if (b != 1)
> __builtin_abort ();
> }
> int main (void)
> {
> f1 (1, 1);
> if (k != 1)
> __builtin_abort ();
> return 0;
> }
Looking into it. Razya
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33434
More information about the Gcc-bugs
mailing list