diff options
author | Martin Liska <mliska@suse.cz> | 2014-09-26 12:37:44 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2014-09-26 10:37:44 +0000 |
commit | bf898b300eea2cd87a1afcadd886c7ae3d593091 (patch) | |
tree | 826243916bb4f3470111118df833648f93566f57 /gcc/cgraphunit.c | |
parent | 5535b7d6f3ff58a69b2bf52e7fe8772e2797f112 (diff) | |
download | gcc-bf898b300eea2cd87a1afcadd886c7ae3d593091.zip gcc-bf898b300eea2cd87a1afcadd886c7ae3d593091.tar.gz gcc-bf898b300eea2cd87a1afcadd886c7ae3d593091.tar.bz2 |
cgraph.c (cgraph_node::release_body): New argument keep_arguments introduced.
* 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.
From-SVN: r215640
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index b854e4b..d463505 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; |