Hello!

gcc.target/i386/pr33329.c is fully optimized with tree optimizers to a
constant. Attached patch increases array size to avoid
over-optimization and to perform intended RTL optimization check.

2012-06-17  Uros Bizjak  <ubiz...@gmail.com>

        * gcc.target/i386/pr33329.c (f): Increase tabs array to 1024.

Tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline SVN.

Uros.
Index: gcc.target/i386/pr33329.c
===================================================================
--- gcc.target/i386/pr33329.c   (revision 188714)
+++ gcc.target/i386/pr33329.c   (working copy)
@@ -5,11 +5,11 @@
 
 void f (void)
 {
-  int tabs[8], tabcount;
+  int tabs[1024], tabcount;
 
   for (tabcount = 1; tabcount <= 8; tabcount += 7)
     {
       int i;
-      for (i = 0; i < 8; i++)
+      for (i = 0; i < 1024; i++)
        tabs[i] = i * 2;
       g (tabs);
     }

Reply via email to