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]
Other format: [Raw text]

[m32c] fix incoming frame sp offset


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 */
 


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