re PR lto/68881 (UNRESOLVED/FAIL: gcc.dg/lto/attr-weakref-1 -O2 -flto)
authorJan Hubicka <hubicka@ucw.cz>
Mon, 4 Apr 2016 09:26:29 +0000 (11:26 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 4 Apr 2016 09:26:29 +0000 (09:26 +0000)
commited2a53e7ca7aafa5fea5316c7fdebdc77fb8f327
tree046b846b874b04d1165f5b13e3c53c3879ea4558
parente8661ad6cfb1d6773a8613270250ab69c7faa95c
re PR lto/68881 (UNRESOLVED/FAIL: gcc.dg/lto/attr-weakref-1 -O2 -flto)

PR ipa/68881
* cgraph.h (symtab_node::copy_visibility_from): New function.
* symtab.c (symtab_node::copy_visibility_from): New function.
* ipa-visibility.c (optimize_weakref): New function.
(function_and_variable_visibility): Use it.

From-SVN: r234708
gcc/ChangeLog
gcc/cgraph.h
gcc/ipa-visibility.c
gcc/symtab.c