re PR ipa/65557 (ICE: SIGSEGV in hash_table<>::find_slot_with_hash() with -fdevirtual...
authorMartin Liska <mliska@suse.cz>
Tue, 31 Mar 2015 16:03:03 +0000 (18:03 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 31 Mar 2015 16:03:03 +0000 (16:03 +0000)
commit12cc8c723ed0dccdbb6b2b590706b1344d468c55
tree4db3c8bb3a6a22a76ab87c5de040de8ce921cc8d
parent78f1b5234a80f335b60b8687d1d6705aa262ea99
re PR ipa/65557 (ICE: SIGSEGV in hash_table<>::find_slot_with_hash() with -fdevirtualize -fipa-cp -fipa-icf-functions)

Fix PR65557.

* ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
has already filled up function summary.
(sem_item_optimizer::update_hash_by_addr_refs): Likewise.
* g++.dg/ipa/pr65557.C: New test.

From-SVN: r221796
gcc/ChangeLog
gcc/ipa-icf.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr65557.C [new file with mode: 0644]