ipa-visibility.c (localize_node): Also do not localize LDPR_PREVAILING_DEF_IRONLY_EXP.

* ipa-visibility.c (localize_node): Also do not localize
	LDPR_PREVAILING_DEF_IRONLY_EXP.

From-SVN: r268732
This commit is contained in:
Jan Hubicka 2019-02-09 22:54:28 +01:00 committed by Jan Hubicka
parent f8774677d8
commit 5873f613cd
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2019-02-09 Jan Hubicka <hubicka@ucw.cz>
* ipa-visibility.c (localize_node): Also do not localize
LDPR_PREVAILING_DEF_IRONLY_EXP.
2019-02-09 Jan Hubicka <hubicka@ucw.cz>
PR lto/87957

View File

@ -539,7 +539,8 @@ localize_node (bool whole_program, symtab_node *node)
symbols. In this case we can privatize all hidden symbol but we need
to keep non-hidden exported. */
if (node->same_comdat_group
&& node->resolution == LDPR_PREVAILING_DEF_IRONLY)
&& (node->resolution == LDPR_PREVAILING_DEF_IRONLY
|| node->resolution == LDPR_PREVAILING_DEF_IRONLY_EXP))
{
symtab_node *next;
for (next = node->same_comdat_group;