From 1f098f077cf9ed048238e0a8d609034bb48f5e4c Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Thu, 14 Jul 2011 11:49:01 +0000 Subject: [PATCH] re PR middle-end/49736 (Revision 176228 miscompiled 255.vortex in SPEC CPU 2000) gcc/ PR middle-end/49736 * expr.c (all_zeros_p): Undo bogus part of last change. From-SVN: r176270 --- gcc/ChangeLog | 5 +++++ gcc/expr.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9e258440749..f003ea9ed1f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-07-14 Richard Sandiford + + PR middle-end/49736 + * expr.c (all_zeros_p): Undo bogus part of last change. + 2011-07-14 Matthias Klose * doc/extend.texi (optimize attribute): Fix typo. diff --git a/gcc/expr.c b/gcc/expr.c index ed921aa3187..ee1114218ca 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -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); -- 2.30.2