2012-03-05 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/52430
* ipa-cp.c (ipcp_initialize_node_lattices): Also consider
node->local.externally_visible as needed.
From-SVN: r184928
+2012-03-05 Martin Jambor <mjambor@suse.cz>
+
+ 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 <dave.anglin@nrc-cnrc.gc.ca>
Backport from mainline
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. */