From d75de25bdede085f57bfa524f5ef7d355875b433 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 22 Jan 2015 20:44:00 +0100 Subject: [PATCH] re PR ipa/64694 (FAIL: 23_containers/unordered_set/insert/hash_policy.cc) PR ipa/64694 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of heap. Co-Authored-By: H.J. Lu From-SVN: r220011 --- gcc/ChangeLog | 7 +++++++ gcc/ipa-inline.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3b8950194d7..ab9484ca370 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2015-01-22 Jan Hubicka + H.J. Lu + + PR ipa/64694 + * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of + heap. + 2015-01-22 Wei Mi PR rtl-optimization/64557 diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index da1afc69047..aa93928b702 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -1794,7 +1794,7 @@ inline_small_functions (void) #endif if (current_badness != badness) { - if (edge_heap.min () && badness > edge_heap.min_key ()) + if (edge_heap.min () && current_badness > edge_heap.min_key ()) { edge->aux = edge_heap.insert (current_badness, edge); continue; -- 2.30.2