From: Marek Polacek Date: Wed, 14 Aug 2013 04:44:37 +0000 (+0000) Subject: ipa-inline-analysis.c (add_clause): Avoid shifting integer NUM_CONDITIONS bit positions. X-Git-Tag: releases/gcc-4.9.0~4587 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61c1a609ee0019524d94b384eaf8159eadb9a555;p=thirdparty%2Fgcc.git 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 --- 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 =