m68hc11.h (RETURN_ADDR_RTX): Define the return address as relative to the argument pointer.

* config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Define the return
	address as relative to the argument pointer.

From-SVN: r43133
This commit is contained in:
Stephane Carrez 2001-06-10 12:16:27 +02:00 committed by Stephane Carrez
parent 671413c5c9
commit 5becdf1187
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-06-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Define the return
address as relative to the argument pointer.
Sun Jun 10 10:58:53 CEST 2001 Jan Hubicka <jh@suse.cz> Sun Jun 10 10:58:53 CEST 2001 Jan Hubicka <jh@suse.cz>
* predict.def (PRED_OPCODE): Place before call and error_return. * predict.def (PRED_OPCODE): Place before call and error_return.

View File

@ -901,6 +901,12 @@ extern int m68hc11_sp_correction;
#define INCOMING_RETURN_ADDR_RTX \ #define INCOMING_RETURN_ADDR_RTX \
gen_rtx_MEM (VOIDmode, gen_rtx_REG (VOIDmode, STACK_POINTER_REGNUM)) gen_rtx_MEM (VOIDmode, gen_rtx_REG (VOIDmode, STACK_POINTER_REGNUM))
/* After the prologue, RA is at -2(AP) in the current frame. */
#define RETURN_ADDR_RTX(COUNT, FRAME) \
((COUNT) == 0 \
? gen_rtx_MEM (Pmode, plus_constant (arg_pointer_rtx, -2))\
: 0)
/* Before the prologue, the top of the frame is at 2(sp). */ /* Before the prologue, the top of the frame is at 2(sp). */
#define INCOMING_FRAME_SP_OFFSET 2 #define INCOMING_FRAME_SP_OFFSET 2