diff options
author | Martin Liska <mliska@suse.cz> | 2015-03-03 10:26:20 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2015-03-03 09:26:20 +0000 |
commit | 17d1bf760f8fda0023d5074de0a2b2929e27c480 (patch) | |
tree | 95f961e1350a2d19eb23ce29ab324e11f8dee391 /gcc/cgraph.h | |
parent | bd31fe14d2dfb4b12a82d9a223853ff2228a6523 (diff) | |
download | gcc-17d1bf760f8fda0023d5074de0a2b2929e27c480.zip gcc-17d1bf760f8fda0023d5074de0a2b2929e27c480.tar.gz gcc-17d1bf760f8fda0023d5074de0a2b2929e27c480.tar.bz2 |
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
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index ff437cf..82519fa 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -1204,6 +1204,9 @@ public: with (not necessarily cgraph_node (DECL). */ static cgraph_node *create_alias (tree alias, tree target); + /* Return true if NODE has thunk. */ + static bool has_thunk_p (cgraph_node *node, void *); + cgraph_edge *callees; cgraph_edge *callers; /* List of edges representing indirect calls with a yet undetermined |