diff options
author | Jan Hubicka <jh@suse.cz> | 2011-06-12 22:38:57 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2011-06-12 20:38:57 +0000 |
commit | c3e3f0901ad63a4a333dbf51eb29c98704cfaa45 (patch) | |
tree | f4ebf9cff01c8e54c518fae1354ac3949bc8512c /gcc/ipa.c | |
parent | 516e076862fffecf065ed0aed62e98ef405ff601 (diff) | |
download | gcc-c3e3f0901ad63a4a333dbf51eb29c98704cfaa45.zip gcc-c3e3f0901ad63a4a333dbf51eb29c98704cfaa45.tar.gz gcc-c3e3f0901ad63a4a333dbf51eb29c98704cfaa45.tar.bz2 |
re PR middle-end/49373 (Many testcase failures)
PR middle-end/49373
* ipa.c (cgraph_externally_visible_p): Check resolution info.
From-SVN: r174972
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r-- | gcc/ipa.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |