aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-reassoc.c
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 /gcc/tree-ssa-reassoc.c
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
Diffstat (limited to 'gcc/tree-ssa-reassoc.c')
-rw-r--r--gcc/tree-ssa-reassoc.c2
1 files changed, 1 insertions, 1 deletions
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. */
}