Be careful about comdat boundary in ICF (PR ipa/82352).
authorMartin Liska <mliska@suse.cz>
Thu, 4 Jan 2018 08:54:17 +0000 (09:54 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 4 Jan 2018 08:54:17 +0000 (08:54 +0000)
commitfcb6fced16389962ebf2cebe737d534994a80fb6
tree097e0c238d79e830bf7d11472361bfcfe6358327
parent517d489618b115219cdf8e2dc83085176a55eb7b
Be careful about comdat boundary in ICF (PR ipa/82352).

2018-01-04  Martin Liska  <mliska@suse.cz>

PR ipa/82352
* ipa-icf.c (sem_function::merge): Do not cross comdat boundary.
2018-01-04  Martin Liska  <mliska@suse.cz>

PR ipa/82352
* g++.dg/ipa/pr82352.C: New test.

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