mips patch: correcting tsize_rtx

Gavin Koch gavin@cygnus.com
Fri Feb 13 15:13:00 GMT 1998


For mips -mips16, if a function requires stack space for it's
outgoing arguments, it does not correctly reset the stack pointer
in the epilogue (eg. gcc.c-torture/execute/struct-ret-1.c).

OK to push?


	* mips/mips.c (mips_expand_epilogue): Update tsize_rtx if 
	tsize changes to something other than zero.

Index: mips.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/mips/mips.c,v
retrieving revision 1.19
diff -c -3 -p -r1.19 mips.c
*** mips.c	1998/02/12 08:37:04	1.19
--- mips.c	1998/02/13 19:30:16
*************** mips_expand_epilogue ()
*** 6775,6780 ****
--- 6775,6783 ----
  					   g6_rtx));
  		  tsize = 0;
  		}
+ 	      
+ 	      if (tsize && tsize != orig_tsize)
+ 		tsize_rtx = GEN_INT (tsize);
  	    }
  
  	  if (TARGET_LONG64)



More information about the Gcc mailing list