From: Martin Jambor Date: Mon, 5 Mar 2012 12:50:29 +0000 (+0100) Subject: re PR tree-optimization/52430 (firefox miscompilation) X-Git-Tag: releases/gcc-4.4.7~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9e45846beec5e5cbeb983c0cb437e00f52d430d;p=thirdparty%2Fgcc.git re PR tree-optimization/52430 (firefox miscompilation) 2012-03-05 Martin Jambor PR tree-optimization/52430 * ipa-cp.c (ipcp_initialize_node_lattices): Also consider node->local.externally_visible as needed. From-SVN: r184928 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8714596fb323..4d98742c1ac3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-03-05 Martin Jambor + + PR tree-optimization/52430 + * ipa-cp.c (ipcp_initialize_node_lattices): Also consider + node->local.externally_visible as needed. + 2012-03-04 John David Anglin Backport from mainline diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index cf678f221d29..c38e4efda72b 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -508,7 +508,7 @@ ipcp_initialize_node_lattices (struct cgraph_node *node) if (ipa_is_called_with_var_arguments (info)) type = IPA_BOTTOM; - else if (!node->needed) + else if (!node->needed && !node->local.externally_visible) type = IPA_TOP; /* When cloning is allowed, we can assume that externally visible functions are not called. We will compensate this by cloning later. */