gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Jul 2011 11:49:01 +0000 (11:49 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Jul 2011 11:49:01 +0000 (11:49 +0000)
PR middle-end/49736
* expr.c (all_zeros_p): Undo bogus part of last change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176270 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/expr.c

index 9e25844..f003ea9 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 ed921aa..ee11142 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);