re PR ipa/64146 (ipa-icf breaks gold dynamic_test_2 test)
authorMartin Liska <mliska@suse.cz>
Thu, 18 Dec 2014 12:02:22 +0000 (13:02 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 18 Dec 2014 12:02:22 +0000 (12:02 +0000)
commit544dafa6966f311c31615c742eb59de13dba9ab8
tree906cb4a2712dcdbdd0d09f0e644bde334a1958a1
parent72c122a20e1fd3c6ca878a488a117c11db05ad12
re PR ipa/64146 (ipa-icf breaks gold dynamic_test_2 test)

Fix for PR ipa/64146

PR ipa/64146
* ipa-icf.c (sem_function::merge): Check for
decl_binds_to_current_def_p is newly added to merge operation.
* g++.dg/ipa/pr64146.C: New test.

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