re PR tree-optimization/61686 (Incorrect check in comparison function range_entry_cmp...
authorMarek Polacek <polacek@redhat.com>
Wed, 10 Dec 2014 08:20:43 +0000 (08:20 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 10 Dec 2014 08:20:43 +0000 (08:20 +0000)
PR tree-optimization/61686
* tree-ssa-reassoc.c (range_entry_cmp): Use q->high instead of
p->high.

From-SVN: r218560

gcc/ChangeLog
gcc/tree-ssa-reassoc.c

index 26ca7b4142ca0e067afc4e399c23b62b4f1d9ed3..9b5b25999a9b5228028011c77216fe3e75fa8dd8 100644 (file)
@@ -1,3 +1,9 @@
+2014-12-10  Marek Polacek  <polacek@redhat.com>
+
+       PR tree-optimization/61686
+       * tree-ssa-reassoc.c (range_entry_cmp): Use q->high instead of
+       p->high.
+
 2014-12-10  Kito Cheng  <kito@0xlab.org>
 
        * doc/libgcc.texi: Update text to match implementation in
index 4fae8fcad7089c5d2332a39222bac8b197e5ecd5..a57548127d7d6b459df095f2379da8d6fc8cb190 100644 (file)
@@ -2069,7 +2069,7 @@ range_entry_cmp (const void *a, const void *b)
              else
                return -1;
            }
-         else if (p->high != NULL_TREE)
+         else if (q->high != NULL_TREE)
            return 1;
          /* If both ranges are the same, sort below by ascending idx.  */
        }