[Bug tree-optimization/58662] wrong code at -O2 and -O3 on x86_64-linux-gnu (in 64-bit mode)

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 8 11:24:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58662

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Actually, I think it's the uncprop:

--- Q.c.139t.crited2    2013-10-08 13:03:04.169955615 +0200
+++ Q.c.141t.uncprop1    2013-10-08 13:03:04.169955615 +0200
@@ -51,7 +51,7 @@
   _13 = (int) _8;

   <bb 4>:
-  # iftmp.3_1 = PHI <0(5), _13(3)>
+  # iftmp.3_1 = PHI <_7(5), _13(3)>
   b = iftmp.3_1;
   printf ("%d\n", iftmp.3_1);
   return 0;

so -fno-tree-dominator-opts makes the bug go away.



More information about the Gcc-bugs mailing list