From 77e600887588c49d6f90e8d32fc21c1082b608c4 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Wed, 10 Dec 2014 08:20:43 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa-reassoc.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 26ca7b4142c..9b5b25999a9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-12-10 Marek Polacek + + PR tree-optimization/61686 + * tree-ssa-reassoc.c (range_entry_cmp): Use q->high instead of + p->high. + 2014-12-10 Kito Cheng * doc/libgcc.texi: Update text to match implementation in diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c index 4fae8fcad70..a57548127d7 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. */ } -- 2.30.2