]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* ipa-inline-analysis.c (add_clause): Avoid shifting integer
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Aug 2013 04:44:37 +0000 (04:44 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Aug 2013 04:44:37 +0000 (04:44 +0000)
NUM_CONDITIONS bit positions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201719 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa-inline-analysis.c

index 45d4971fa7180a1b61e10f08e96f4e05b88d6160..8dc071d796109076a137794bbc28c32836485a2f 100644 (file)
@@ -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.
index 2f30797443a39a35c81a6a697352870e603d55e4..806b219c2288ce6ba28c192c2f08ef591b945391 100644 (file)
@@ -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 =