ICF: properly handle LABEL_DECLs (PR tree-opt/81696).
authorMartin Liska <mliska@suse.cz>
Tue, 8 Aug 2017 11:59:23 +0000 (13:59 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 8 Aug 2017 11:59:23 +0000 (11:59 +0000)
commitd81e058f5ed20929bfee40fd281e39c80d7fd9e0
tree2b911eb5ae54976f4cc25470e20ef171e7f11dec
parenta5c93f53874df217443c718dd5e938783e695871
ICF: properly handle LABEL_DECLs (PR tree-opt/81696).

2017-08-08  Martin Liska  <mliska@suse.cz>

PR tree-opt/81696
* ipa-icf-gimple.c (func_checker::compare_cst_or_decl): Consider
LABEL_DECLs that can be from a different function.
2017-08-08  Martin Liska  <mliska@suse.cz>

PR tree-opt/81696
* gcc.dg/ipa/pr81696.c: New test.

From-SVN: r250951
gcc/ChangeLog
gcc/ipa-icf-gimple.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr81696.c [new file with mode: 0644]