From 5873f613cdce33f06ea8779dd3fc1b787cde4141 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 9 Feb 2019 22:54:28 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/ipa-visibility.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 71ad88d3b0b..b43a6681584 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-02-09 Jan Hubicka + + * ipa-visibility.c (localize_node): Also do not localize + LDPR_PREVAILING_DEF_IRONLY_EXP. + 2019-02-09 Jan Hubicka PR lto/87957 diff --git a/gcc/ipa-visibility.c b/gcc/ipa-visibility.c index 5752e5c5085..d9ef8f53735 100644 --- a/gcc/ipa-visibility.c +++ b/gcc/ipa-visibility.c @@ -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;