This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
(C++) patch to store_return_init
- To: gcc-patches at gcc dot gnu dot org
- Subject: (C++) patch to store_return_init
- From: Jason Merrill <jason at cygnus dot com>
- Date: Fri, 2 Jun 2000 12:37:56 -0700
Fixes g++.ext/return1.C.
2000-06-02 Jason Merrill <jason@casey.soma.redhat.com>
* decl.c (store_return_init): Call put_var_into_stack.
Index: decl.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/decl.c,v
retrieving revision 1.621
diff -c -p -r1.621 decl.c
*** decl.c 2000/06/01 09:44:58 1.621
--- decl.c 2000/06/02 19:37:18
*************** store_return_init (decl)
*** 14025,14030 ****
--- 14026,14033 ----
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);
}
}