2015-02-28 Martin Liska <mliska@suse.cz>
commit7fb15fe8dd20c89cc308278376564c7724162835
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 1 Mar 2015 20:23:21 +0000 (1 20:23 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 1 Mar 2015 20:23:21 +0000 (1 20:23 +0000)
treefe24d2aee9562db1a7e4fe3b11e9626f5700ae13
parentaec2c863e0cfe8595cc8b49e9786cb61eb264a7d
2015-02-28  Martin Liska  <mliska@suse.cz>
    Jan Hubicka   <hubicka@ucw.cz>

PR ipa/65245
* ipa-icf-gimple.c (func_checker::compare_function_decl):
Remove.
(func_checker::compare_variable_decl): Skip symtab vars.
(func_checker::compare_cst_or_decl): Update.
* ipa-icf.c (sem_function::parse): Do not consider aliases.
(sem_function::compare_cgraph_references): Add ADDRESS parameter;
use correct symtab predicates.
(sem_function::equals_wpa): Update uses of compare_cgraph_references.
(sem_variable::parse):  Update comment.
(sem_item_optimizer::build_graph): Consider ultimate aliases
for references.

* gcc.dg/ipa/ipa-icf-34.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221090 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-icf-gimple.c
gcc/ipa-icf.c
gcc/ipa-icf.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/ipa-icf-34.c [new file with mode: 0644]