Message ID | 20110612174558.GA10123@kam.mff.cuni.cz |
---|---|
State | New |
Headers | show |
Index: ipa.c =================================================================== --- ipa.c (revision 174955) +++ ipa.c (working copy) @@ -614,6 +614,8 @@ /* If linker counts on us, we must preserve the function. */ if (cgraph_used_from_object_file_p (node)) return true; + if (node->resolution == LDPR_PREVAILING_DEF_IRONLY) + return false; if (DECL_PRESERVE_P (node->decl)) return true; if (lookup_attribute ("externally_visible", DECL_ATTRIBUTES (node->decl)))