Fix symver attribute with LTO
authorJan Hubicka <hubicka@ucw.cz>
Thu, 19 Dec 2019 10:03:48 +0000 (11:03 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 19 Dec 2019 10:03:48 +0000 (10:03 +0000)
commit40ebe1fc2f136a454b0d5efa119bb516ad767c91
tree302cab4062b9e251794530c40e2009eb19eb7509
parent44fca83228acc96c19c51e52b5c0448e09329170
Fix symver attribute with LTO

* cgraph.c (cgraph_node_cannot_be_local_p_1): Prevent targets of
symver attributes to be localized.
* ipa-visibility.c (cgraph_externally_visible_p,
varpool_node::externally_visible_p): Likewise.
* symtab.c (symtab_node::verify_base): Check visibility of symbol
versions.

* lto-common.c (read_cgraph_and_symbols): Work around binutils
PR25424

Co-Authored-By: Xi Ruoyao <xry111@mengyan1223.wang>
From-SVN: r279566
gcc/ChangeLog
gcc/cgraph.c
gcc/ipa-visibility.c
gcc/lto/ChangeLog
gcc/lto/lto-common.c
gcc/symtab.c