aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2014-12-10 08:20:43 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2014-12-10 08:20:43 +0000
commit77e600887588c49d6f90e8d32fc21c1082b608c4 (patch)
tree8ce77ed2e9d2bf5f201378c7f6c9e93e4c32a8a5
parent5d56a5854f0fa61ee7aa0a7732c91864a720e286 (diff)
downloadgcc-77e600887588c49d6f90e8d32fc21c1082b608c4.zip
gcc-77e600887588c49d6f90e8d32fc21c1082b608c4.tar.gz
gcc-77e600887588c49d6f90e8d32fc21c1082b608c4.tar.bz2
re PR tree-optimization/61686 (Incorrect check in comparison function range_entry_cmp() in tree_ssa_reassoc.c)
PR tree-optimization/61686 * tree-ssa-reassoc.c (range_entry_cmp): Use q->high instead of p->high. From-SVN: r218560
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-ssa-reassoc.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 26ca7b4..9b5b259 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c
index 4fae8fc..a575481 100644
--- a/gcc/tree-ssa-reassoc.c
+++ b/gcc/tree-ssa-reassoc.c
@@ -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. */
}