* cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
commitaaa36a786b0643c54d046be395c651999c2bd38d
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 May 2016 16:36:51 +0000 (4 16:36 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 May 2016 16:36:51 +0000 (4 16:36 +0000)
tree9eaf587465ab186e64c5890827bfe771bf2b2f5c
parent1d52c456bf6b516767799042d378d0cc36733d60
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235887 138bc75d-0d04-0410-961f-82ee72b054a4
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]