From 2f8edb39a11e05ff6f1b82e38ceb37c71084cf6a Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 2 Jun 2000 19:38:35 +0000 Subject: * decl.c (store_return_init): Call put_var_into_stack. From-SVN: r34364 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/decl.c | 3 +++ 2 files changed, 7 insertions(+) (limited to 'gcc') diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1867f59..ebc064d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2000-06-02 Jason Merrill + + * decl.c (store_return_init): Call put_var_into_stack. + 2000-06-01 Mark Mitchell * cp-tree.h (lang_decl_flags): Add anticipated_p. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 55c7ba5..1cd6f43 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -169,6 +169,7 @@ static void make_rtl_for_nonlocal_decl PARAMS ((tree, tree, const char *)); static void push_cp_function_context PARAMS ((struct function *)); static void pop_cp_function_context PARAMS ((struct function *)); static void mark_binding_level PARAMS ((void *)); +static void mark_named_label_lists PARAMS ((void *, void *)); static void mark_cp_function_context PARAMS ((struct function *)); static void mark_saved_scope PARAMS ((void *)); static void mark_lang_function PARAMS ((struct language_function *)); @@ -14025,6 +14026,8 @@ store_return_init (decl) here, we use the mode the back-end has already assigned for the return value. */ DECL_RTL (decl) = gen_reg_rtx (GET_MODE (original_result_rtx)); + if (TREE_ADDRESSABLE (decl)) + put_var_into_stack (decl); } } -- cgit v1.1