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

From-SVN: r218562

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

index 12e271dd984b321992e8045f85719584eb6fae34..deb5755d91d7b23c7ebb7c662ddcfa53f1e9684f 100644 (file)
@@ -1,3 +1,12 @@
+2014-12-10  Marek Polacek  <polacek@redhat.com>
+
+       Backport from mainline
+       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-09  David Edelsohn  <dje.gcc@gmail.com>
 
        Backport from mainline
index b3528391b857ae6a2ed0ae3250d3e4380665810c..bd525843f47684891ff9757fbd8ef0d37b14e622 100644 (file)
@@ -1898,7 +1898,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.  */
        }