From: Jan Hubicka Date: Sun, 12 Jun 2011 20:38:57 +0000 (+0200) Subject: re PR middle-end/49373 (Many testcase failures) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c3e3f0901ad63a4a333dbf51eb29c98704cfaa45;p=gcc.git re PR middle-end/49373 (Many testcase failures) PR middle-end/49373 * ipa.c (cgraph_externally_visible_p): Check resolution info. From-SVN: r174972 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2721e8ee3e5..e0c471b9421 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-06-11 Jan Hubicka + + PR middle-end/49373 + * ipa.c (cgraph_externally_visible_p): Check resolution info. + 2011-06-11 Jan Hubicka PR middle-end/48836 diff --git a/gcc/ipa.c b/gcc/ipa.c index 3f7dac33cf4..07a90b51203 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -629,6 +629,8 @@ cgraph_externally_visible_p (struct cgraph_node *node, if (TARGET_DLLIMPORT_DECL_ATTRIBUTES && lookup_attribute ("dllexport", DECL_ATTRIBUTES (node->decl))) return true; + if (node->resolution == LDPR_PREVAILING_DEF_IRONLY) + return false; /* When doing LTO or whole program, we can bring COMDAT functoins static. This improves code quality and we know we will duplicate them at most twice (in the case that we are not using plugin and link with object file