re PR lto/64693 (PCH failed with --with-build-config=bootstrap-lto)
authorMartin Liska <mliska@suse.cz>
Thu, 26 Feb 2015 20:21:38 +0000 (21:21 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 26 Feb 2015 20:21:38 +0000 (20:21 +0000)
commit5ebd0e6155dcb7ebecf278731aad189be79bb456
tree31bd542ab4137d5e5826c62a637c3f0f03c24b46
parentff5ed3f6def9e24f907c6b9df66b9a582b327ac9
re PR lto/64693 (PCH failed with --with-build-config=bootstrap-lto)

Fix PR ipa/64693

PR ipa/64693
* ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
(sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
(sem_item_optimizer::process_cong_reduction): Include division by
sensitive references.
* ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
* ipa-ref.c (ipa_ref::address_matters_p): New function.
* ipa-ref.h (ipa_ref::address_matters_p): Likewise.
* g++.dg/ipa/pr64146.C: Update expected results.
* gcc.dg/ipa/ipa-icf-26.c: Update test.
* gcc.dg/ipa/ipa-icf-33.c: Remove redundant line.
* gcc.dg/ipa/ipa-icf-34.c: New test.

Co-Authored-By: Jan Hubicka <hubicka@ucw.cz>
From-SVN: r221031
gcc/ChangeLog
gcc/ipa-icf.c
gcc/ipa-icf.h
gcc/ipa-ref.c
gcc/ipa-ref.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr64146.C
gcc/testsuite/gcc.dg/ipa/ipa-icf-26.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-33.c