(C++) patch to store_return_init
Jason Merrill
jason@cygnus.com
Fri Jun 2 12:37:00 GMT 2000
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);
}
}
More information about the Gcc-patches
mailing list