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
This commit is contained in:
Jan Hubicka 2014-08-18 21:21:58 +02:00 committed by Jan Hubicka
parent c5ac1780e4
commit 2e4c1e6c81
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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

View file

@ -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)