re PR middle-end/49736 (Revision 176228 miscompiled 255.vortex in SPEC CPU 2000)
authorRichard Sandiford <richard.sandiford@linaro.org>
Thu, 14 Jul 2011 11:49:01 +0000 (11:49 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 14 Jul 2011 11:49:01 +0000 (11:49 +0000)
gcc/
PR middle-end/49736
* expr.c (all_zeros_p): Undo bogus part of last change.

From-SVN: r176270

gcc/ChangeLog
gcc/expr.c

index 9e25844074926a2325e7731016cfeaa6b32842ba..f003ea9ed1f8126be299c1d5a0cde07ac471e929 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
+
+       PR middle-end/49736
+       * expr.c (all_zeros_p): Undo bogus part of last change.
+
 2011-07-14  Matthias Klose <doko@ubuntu.com>
 
        * doc/extend.texi (optimize attribute): Fix typo.
index ed921aa31879861443015fe3ee0bbb7c06d0bde6..ee1114218ca7d156999c8566ba54fa826def5f26 100644 (file)
@@ -5157,7 +5157,7 @@ all_zeros_p (const_tree exp)
       bool complete_p;
 
       categorize_ctor_elements (exp, &nz_elts, &init_elts, &complete_p);
-      return nz_elts == init_elts;
+      return nz_elts == 0;
     }
 
   return initializer_zerop (exp);