re PR target/65263 (ICE (error: unrecognizable insn / in insn_min_length, at config...
authorMartin Liska <mliska@suse.cz>
Tue, 3 Mar 2015 09:26:20 +0000 (10:26 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 3 Mar 2015 09:26:20 +0000 (09:26 +0000)
commit17d1bf760f8fda0023d5074de0a2b2929e27c480
tree95f961e1350a2d19eb23ce29ab324e11f8dee391
parentbd31fe14d2dfb4b12a82d9a223853ff2228a6523
re PR target/65263 (ICE (error: unrecognizable insn / in insn_min_length, at config/rs6000/rs6000.md) on powerpc64le-linux-gnu)

Fix PR ipa/65263.

PR ipa/65263
* cgraph.c (cgraph_node::has_thunk_p): New function.
* cgraph.h (cgraph_node::has_thunk_p: Likewise.
* ipa-icf.c (redirect_all_callers): Do not redirect thunks.
(sem_function::merge): Assert is changed.
* g++.dg/ipa/pr65263.C: New test.

Co-Authored-By: Jan Hubicka <hubicka@ucw.cz>
From-SVN: r221134
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/ipa-icf.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr65263.C [new file with mode: 0644]