From: mpolacek Date: Wed, 14 Aug 2013 04:44:37 +0000 (+0000) Subject: * ipa-inline-analysis.c (add_clause): Avoid shifting integer X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8249d4273b2fcac5bace9160feece5ef2ce8773a;p=thirdparty%2Fgcc.git * ipa-inline-analysis.c (add_clause): Avoid shifting integer NUM_CONDITIONS bit positions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201719 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 45d4971fa718..8dc071d79610 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-08-14 Marek Polacek + + * ipa-inline-analysis.c (add_clause): Avoid shifting integer + NUM_CONDITIONS bit positions. + 2013-08-13 Cary Coutant * dwarf2out.c (CHECKSUM_BLOCK): New macro. diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c index 2f30797443a3..806b219c2288 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 =