re PR ipa/65245 (internal compiler error: in address_matters_p, at symtab.c:1908)
authorMartin Liska <mliska@suse.cz>
Sun, 1 Mar 2015 20:23:21 +0000 (21:23 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 1 Mar 2015 20:23:21 +0000 (20:23 +0000)
commitb6cddc7fb673b0712f03dfb3b7c1f7df81a139c6
treefe24d2aee9562db1a7e4fe3b11e9626f5700ae13
parentf0e677d2e0e9252bd9cb32f3f606ebc7612217ba
re PR ipa/65245 (internal compiler error: in address_matters_p, at symtab.c:1908)

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.

Co-Authored-By: Jan Hubicka <hubicka@ucw.cz>
From-SVN: r221090
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]