aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2010-10-11 14:02:03 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2010-10-11 14:02:03 +0000
commit7d26a391fd9ac40cc36a29d400805e7eba57d72e (patch)
treefef720a10803c1995d9dd58609a9d19846a9638a
parente90b1c4a4ab4d6141a57e827f1b2a548f577d7ba (diff)
downloadgcc-7d26a391fd9ac40cc36a29d400805e7eba57d72e.zip
gcc-7d26a391fd9ac40cc36a29d400805e7eba57d72e.tar.gz
gcc-7d26a391fd9ac40cc36a29d400805e7eba57d72e.tar.bz2
re PR middle-end/45955 (FAIL: gcc.dg/initpri1.c (test for excess errors))
PR middle-end/45955 * ipa.c (build_cdtor): Delete endless loop. From-SVN: r165308
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a862b5e..5955d40 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ PR middle-end/45955
+ * ipa.c (build_cdtor): Delete endless loop.
+
2010-10-07 Andi Kleen <ak@linux.intel.com>
* Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
diff --git a/gcc/ipa.c b/gcc/ipa.c
index 8eadd36..0b1e2c9 100644
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -1487,7 +1487,6 @@ build_cdtor (bool ctor_p, VEC (tree, heap) *cdtors)
TREE_SIDE_EFFECTS (call) = 1;
append_to_statement_list (call, &body);
}
- while (i < len);
gcc_assert (body != NULL_TREE);
/* Generate a function to call all the function of like
priority. */