From: Jan Hubicka Date: Sun, 12 Jun 2011 20:38:57 +0000 (+0200) Subject: re PR middle-end/49373 (Many testcase failures) X-Git-Tag: releases/gcc-4.7.0~6037 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c3e3f0901ad63a4a333dbf51eb29c98704cfaa45;p=thirdparty%2Fgcc.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 2721e8ee3e53..e0c471b94213 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 3f7dac33cf45..07a90b51203f 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