diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-08-18 21:21:58 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-08-18 19:21:58 +0000 |
commit | 2e4c1e6c813241b3a62348373410826bef3c5a4a (patch) | |
tree | dc89ff40ae7835eab628373e7d1ea613118bf681 /gcc | |
parent | c5ac1780e4b4db5802689b4eee9becb5c3ad4a7e (diff) | |
download | gcc-2e4c1e6c813241b3a62348373410826bef3c5a4a.zip gcc-2e4c1e6c813241b3a62348373410826bef3c5a4a.tar.gz gcc-2e4c1e6c813241b3a62348373410826bef3c5a4a.tar.bz2 |
ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF comdats as extern.
* ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
comdats as extern.
From-SVN: r214115
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa-visibility.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9ffa188..55b41ae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2014-08-18 Jan Hubicka <hubicka@ucw.cz> + * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF + comdats as extern. + +2014-08-18 Jan Hubicka <hubicka@ucw.cz> + * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces to BUILT_IN_UNREACHABLE. diff --git a/gcc/ipa-visibility.c b/gcc/ipa-visibility.c index 110d22b..d33c36b 100644 --- a/gcc/ipa-visibility.c +++ b/gcc/ipa-visibility.c @@ -391,6 +391,7 @@ update_visibility_by_resolution_info (symtab_node * node) define = (node->resolution == LDPR_PREVAILING_DEF_IRONLY || node->resolution == LDPR_PREVAILING_DEF + || node->resolution == LDPR_UNDEF || node->resolution == LDPR_PREVAILING_DEF_IRONLY_EXP); /* The linker decisions ought to agree in the whole group. */ @@ -400,6 +401,7 @@ update_visibility_by_resolution_info (symtab_node * node) gcc_assert (!node->externally_visible || define == (next->resolution == LDPR_PREVAILING_DEF_IRONLY || next->resolution == LDPR_PREVAILING_DEF + || next->resolution == LDPR_UNDEF || next->resolution == LDPR_PREVAILING_DEF_IRONLY_EXP)); if (node->same_comdat_group) |