diff options
author | Marek Polacek <polacek@redhat.com> | 2013-08-14 04:44:37 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2013-08-14 04:44:37 +0000 |
commit | 61c1a609ee0019524d94b384eaf8159eadb9a555 (patch) | |
tree | b54f442d9ed85f8d47f8eb3b7e7d5919e5e7771a | |
parent | d753b1363d6c452a8c30e8ebab7e6fb884b1d300 (diff) | |
download | gcc-61c1a609ee0019524d94b384eaf8159eadb9a555.zip gcc-61c1a609ee0019524d94b384eaf8159eadb9a555.tar.gz gcc-61c1a609ee0019524d94b384eaf8159eadb9a555.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa-inline-analysis.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 45d4971..8dc071d 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 2f30797..806b219 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 = |