aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/expr.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-10-06 18:46:42 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-10-06 18:46:42 -0700
commit156ce2112ee594b9e6cfa583e0ce06eddb1d24ab (patch)
treefabcd5b6995d0d6c41b61d70163013e003cf0645 /gcc/cp/expr.c
parent3e4eac3fe9f4b590e6c95356c3fcb7b08630acf2 (diff)
downloadgcc-156ce2112ee594b9e6cfa583e0ce06eddb1d24ab.zip
gcc-156ce2112ee594b9e6cfa583e0ce06eddb1d24ab.tar.gz
gcc-156ce2112ee594b9e6cfa583e0ce06eddb1d24ab.tar.bz2
cp-tree.h (struct cp_language_function): Remove x_result_rtx.
* 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. From-SVN: r36770
Diffstat (limited to 'gcc/cp/expr.c')
-rw-r--r--gcc/cp/expr.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c
index c49a2f9..918e54d 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;