summaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>2014-09-26 10:37:44 +0000
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>2014-09-26 10:37:44 +0000
commit8e92a5ee2128a4f0ae6bdba7192ddb478f6e43c4 (patch)
tree826243916bb4f3470111118df833648f93566f57 /gcc/cgraphunit.c
parent30d5395fb3aea542f7eb38c872a8be0e9b09e9f1 (diff)
downloadgcc-8e92a5ee2128a4f0ae6bdba7192ddb478f6e43c4.tar.gz
* cgraph.c (cgraph_node::release_body): New argument keep_arguments
introduced. * cgraph.h: Likewise. * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced. * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java. * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global. * tree-ssa-alias.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215640 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index b854e4b2a37..d4635052352 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -2294,8 +2294,9 @@ cgraph_node::create_wrapper (cgraph_node *target)
/* Preserve DECL_RESULT so we get right by reference flag. */
tree decl_result = DECL_RESULT (decl);
- /* Remove the function's body. */
- release_body ();
+ /* Remove the function's body but keep arguments to be reused
+ for thunk. */
+ release_body (true);
reset ();
DECL_RESULT (decl) = decl_result;