aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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. */