Commit 61c1a609 by Marek Polacek Committed by Marek Polacek

ipa-inline-analysis.c (add_clause): Avoid shifting integer NUM_CONDITIONS bit positions.

* ipa-inline-analysis.c (add_clause): Avoid shifting integer
NUM_CONDITIONS bit positions.

From-SVN: r201719
parent d753b136
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> 2013-08-13 Cary Coutant <ccoutant@google.com>
* dwarf2out.c (CHECKSUM_BLOCK): New macro. * dwarf2out.c (CHECKSUM_BLOCK): New macro.
......
...@@ -337,7 +337,7 @@ add_clause (conditions conditions, struct predicate *p, clause_t clause) ...@@ -337,7 +337,7 @@ add_clause (conditions conditions, struct predicate *p, clause_t clause)
and thus there is no point for looking for them. */ and thus there is no point for looking for them. */
if (cc1->code == CHANGED || cc1->code == IS_NOT_CONSTANT) if (cc1->code == CHANGED || cc1->code == IS_NOT_CONSTANT)
continue; continue;
for (c2 = c1 + 1; c2 <= NUM_CONDITIONS; c2++) for (c2 = c1 + 1; c2 < NUM_CONDITIONS; c2++)
if (clause & (1 << c2)) if (clause & (1 << c2))
{ {
condition *cc1 = condition *cc1 =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment