[m32c] fix incoming frame sp offset

DJ Delorie dj@redhat.com
Thu Apr 6 01:54:00 GMT 2006


2006-04-05  DJ Delorie  <dj@redhat.com>

	* config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
	vs m32c.

Index: config/m32c/m32c.h
===================================================================
--- config/m32c/m32c.h	(revision 112729)
+++ config/m32c/m32c.h	(working copy)
@@ -428,7 +428,7 @@ enum reg_class
 #define RETURN_ADDR_RTX(COUNT,FA) m32c_return_addr_rtx (COUNT)
 
 #define INCOMING_RETURN_ADDR_RTX m32c_incoming_return_addr_rtx()
-#define INCOMING_FRAME_SP_OFFSET 3
+#define INCOMING_FRAME_SP_OFFSET (TARGET_A24 ? 4 : 3)
 
 /* Exception Handling Support */
 



More information about the Gcc-patches mailing list