From: Marek Polacek Date: Wed, 10 Dec 2014 08:29:44 +0000 (+0000) Subject: re PR tree-optimization/61686 (Incorrect check in comparison function range_entry_cmp... X-Git-Tag: releases/gcc-4.8.4~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8039bc5e799183e0152fa26bfd91ad9a2ac9b7b1;p=thirdparty%2Fgcc.git 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 --- 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. */ }