cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Check availability on...
authorJan Hubicka <hubicka@ucw.cz>
Wed, 4 May 2016 16:36:51 +0000 (18:36 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 4 May 2016 16:36:51 +0000 (16:36 +0000)
commit6b715bf6d991249181ce532442fa5513e137f708
tree9eaf587465ab186e64c5890827bfe771bf2b2f5c
parentdeef71132774618d06d571e935d10753f92d8ad9
cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Check availability on NODE, too.

* cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
Check availability on NODE, too.
* cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
(cgraph_node::call_for_symbol_and_aliases): Likewise.
(varpool_node::call_for_symbol_and_aliase): Likewise.
* ipa-pure-const.c (add_new_function): Analyze all bodies.
(propagate_pure_const): Propagate across interposable functions, too.
(skip_function_for_local_pure_const): Do not skip interposable bodies
with aliases.
(pass_local_pure_const::execute): Update.

* gcc.dg/ipa/pure-const-3.c: New testcase.

From-SVN: r235887
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/ipa-pure-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pure-const-3.c [new file with mode: 0644]