re PR middle-end/49373 (Many testcase failures)
authorJan Hubicka <jh@suse.cz>
Sun, 12 Jun 2011 20:38:57 +0000 (22:38 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 12 Jun 2011 20:38:57 +0000 (20:38 +0000)
PR middle-end/49373
* ipa.c (cgraph_externally_visible_p): Check resolution info.

From-SVN: r174972

gcc/ChangeLog
gcc/ipa.c

index 2721e8ee3e53bab9849d260dc07bcd5c3bd8fafb..e0c471b94213ac1e151fbed42dbbd9a3363cad6d 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-11  Jan Hubicka  <jh@suse.cz>
+
+       PR middle-end/49373
+       * ipa.c (cgraph_externally_visible_p): Check resolution info.
+
 2011-06-11  Jan Hubicka  <jh@suse.cz>
 
        PR middle-end/48836
index 3f7dac33cf457eea5049b54adc3f0df260ab325a..07a90b51203fecccd3aea813f66a82cded1d9440 100644 (file)
--- 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