re PR lto/61886 (LTO breaks fread with _FORTIFY_SOURCE=2)
authorJan Hubicka <hubicka@ucw.cz>
Tue, 8 Dec 2015 22:02:23 +0000 (23:02 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 8 Dec 2015 22:02:23 +0000 (22:02 +0000)
commit9b21e866825085e069dd2763a702202cb9adeb16
tree45e5fa8debe25103566c68d50a4572bfba529fdc
parentced7e9584b848a8d5975b23efb5eac04ee2aee6f
re PR lto/61886 (LTO breaks fread with _FORTIFY_SOURCE=2)

PR ipa/61886
* varpool.c (varpool_node::get_availability): Recurse only on
weakrefs with definition in the target.
(symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.

From-SVN: r231429
gcc/ChangeLog
gcc/varpool.c