From c3e3f0901ad63a4a333dbf51eb29c98704cfaa45 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 12 Jun 2011 22:38:57 +0200 Subject: [PATCH] re PR middle-end/49373 (Many testcase failures) PR middle-end/49373 * ipa.c (cgraph_externally_visible_p): Check resolution info. From-SVN: r174972 --- gcc/ChangeLog | 5 +++++ gcc/ipa.c | 2 ++ 2 files changed, 7 insertions(+) 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 -- 2.30.2