diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/expr.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9e25844..f003ea9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. @@ -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); |