From 8039bc5e799183e0152fa26bfd91ad9a2ac9b7b1 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Wed, 10 Dec 2014 08:29:44 +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: r218562 --- gcc/ChangeLog | 9 +++++++++ gcc/tree-ssa-reassoc.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 12e271dd984b..deb5755d91d7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2014-12-10 Marek Polacek + + Backport from mainline + 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-09 David Edelsohn Backport from mainline diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c index b3528391b857..bd525843f476 100644 --- a/gcc/tree-ssa-reassoc.c +++ b/gcc/tree-ssa-reassoc.c @@ -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. */ } -- 2.47.2