diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-15 17:01:08 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-15 17:01:08 +0000 |
commit | a3a6d499c752fde6bf5e2ea88d1cf344d24e15a5 (patch) | |
tree | 1f015af4afa8c3718025ac862a9f9c29c76b5e0f /gcc/cgraphclones.c | |
parent | 6112b14ec09f73351806102dcbafe09b0cd20436 (diff) | |
download | gcc-a3a6d499c752fde6bf5e2ea88d1cf344d24e15a5.tar.gz |
PR lto/62026
* lto/pr62026.C: New testcase.
* cgraphclones.c (duplicate_thunk_for_node): Get body to have args
to duplicate.
* lto-streamer-out.c (lto_output): Handle correctly thunks that was born
at WPA time.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216278 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphclones.c')
-rw-r--r-- | gcc/cgraphclones.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c index c487c13f3db..71b9269f984 100644 --- a/gcc/cgraphclones.c +++ b/gcc/cgraphclones.c @@ -295,6 +295,9 @@ duplicate_thunk_for_node (cgraph_node *thunk, cgraph_node *node) if (thunk_of->thunk.thunk_p) node = duplicate_thunk_for_node (thunk_of, node); + if (!DECL_ARGUMENTS (thunk->decl)) + thunk->get_body (); + cgraph_edge *cs; for (cs = node->callers; cs; cs = cs->next_caller) if (cs->caller->thunk.thunk_p |