diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-07 01:46:42 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-07 01:46:42 +0000 |
commit | 87ed0134d982ea4a876c3f179a6a83eec22dc1a9 (patch) | |
tree | fabcd5b6995d0d6c41b61d70163013e003cf0645 /gcc/cp/expr.c | |
parent | ae39498f5bd7232cda4550cc72ce572c2ae0aef9 (diff) | |
download | gcc-87ed0134d982ea4a876c3f179a6a83eec22dc1a9.tar.gz |
* cp/cp-tree.h (struct cp_language_function): Remove x_result_rtx.
(original_result_rtx): Remove.
* cp/decl.c (save_function_data): Don't clear x_result_rtx.
(mark_lang_function): Don't mark it either.
* cp/expr.c (fixup_result_decl): Remove.
* cp/semantics.c (genrtl_named_return_value): Frob the return decl
before calling emit_local_var.
(genrtl_finish_function): Don't call fixup_result_decl.
Always emit the jump to return_label.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36770 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/expr.c')
-rw-r--r-- | gcc/cp/expr.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c index c49a2f93583..918e54dbb0f 100644 --- a/gcc/cp/expr.c +++ b/gcc/cp/expr.c @@ -148,36 +148,6 @@ init_cplus_expand () lang_expand_constant = cplus_expand_constant; } -/* If DECL had its rtl moved from where callers expect it - to be, fix it up. RESULT is the nominal rtl for the RESULT_DECL, - which may be a pseudo instead of a hard register. */ - -void -fixup_result_decl (decl, result) - tree decl; - rtx result; -{ - if (REG_P (result)) - { - if (REGNO (result) >= FIRST_PSEUDO_REGISTER) - { - rtx real_decl_result; - -#ifdef FUNCTION_OUTGOING_VALUE - real_decl_result - = FUNCTION_OUTGOING_VALUE (TREE_TYPE (decl), current_function_decl); -#else - real_decl_result - = FUNCTION_VALUE (TREE_TYPE (decl), current_function_decl); -#endif - REG_FUNCTION_VALUE_P (real_decl_result) = 1; - result = real_decl_result; - } - store_expr (decl, result, 0); - emit_insn (gen_rtx (USE, VOIDmode, result)); - } -} - int extract_init (decl, init) tree decl ATTRIBUTE_UNUSED, init ATTRIBUTE_UNUSED; |