summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa-inline-analysis.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 45d4971fa71..8dc071d7961 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2013-08-14 Marek Polacek <polacek@redhat.com>
+
+ * ipa-inline-analysis.c (add_clause): Avoid shifting integer
+ NUM_CONDITIONS bit positions.
+
2013-08-13 Cary Coutant <ccoutant@google.com>
* dwarf2out.c (CHECKSUM_BLOCK): New macro.
diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c
index 2f30797443a..806b219c228 100644
--- a/gcc/ipa-inline-analysis.c
+++ b/gcc/ipa-inline-analysis.c
@@ -337,7 +337,7 @@ add_clause (conditions conditions, struct predicate *p, clause_t clause)
and thus there is no point for looking for them. */
if (cc1->code == CHANGED || cc1->code == IS_NOT_CONSTANT)
continue;
- for (c2 = c1 + 1; c2 <= NUM_CONDITIONS; c2++)
+ for (c2 = c1 + 1; c2 < NUM_CONDITIONS; c2++)
if (clause & (1 << c2))
{
condition *cc1 =