This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

(C++) patch to store_return_init


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);
      }
  }
  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]