re PR c/61271 (10 * possible coding error with logical not (!))
authorMarek Polacek <polacek@redhat.com>
Tue, 26 Aug 2014 14:24:15 +0000 (14:24 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 26 Aug 2014 14:24:15 +0000 (14:24 +0000)
PR c/61271
* sel-sched-ir.c (make_regions_from_the_rest): Fix condition.

From-SVN: r214523

gcc/ChangeLog
gcc/sel-sched-ir.c

index 9afbb8dc673efcf8b95f79ba476a95141b2b459f..6b9bc1c534d8bc4132c0a5860860ba2133fae367 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-26  Marek Polacek  <polacek@redhat.com>
+
+       PR c/61271
+       * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
+
 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
 
        * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
index c36658f15c49a3b6836ee22dbe3cf95f3d077eb1..dd777fa6bcf44dde7a86154b263dafd648502d46 100644 (file)
@@ -6185,7 +6185,7 @@ make_regions_from_the_rest (void)
 
   FOR_EACH_BB_FN (bb, cfun)
     {
-      if (bb->loop_father && !bb->loop_father->num == 0
+      if (bb->loop_father && bb->loop_father->num != 0
          && !(bb->flags & BB_IRREDUCIBLE_LOOP))
        loop_hdr[bb->index] = bb->loop_father->num;
     }