Commit 35f0a736 by Stephane Carrez Committed by Stephane Carrez

m68hc11.h (RETURN_ADDR_RTX): Fix return address when -fomit-frame-pointer is used.

	* config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
	when -fomit-frame-pointer is used.

From-SVN: r43789
parent 35428bb9
2001-07-05 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
when -fomit-frame-pointer is used.
2001-07-05 Jeffrey Oldham <oldham@codesourcery.com>
* flow.c: Reverse Jan Hubicka's patch of 02July2001.
......
......@@ -892,10 +892,10 @@ extern int m68hc11_sp_correction;
#define INCOMING_RETURN_ADDR_RTX \
gen_rtx_MEM (VOIDmode, gen_rtx_REG (VOIDmode, STACK_POINTER_REGNUM))
/* After the prologue, RA is at -2(AP) in the current frame. */
/* After the prologue, RA is at 0(AP) in the current frame. */
#define RETURN_ADDR_RTX(COUNT, FRAME) \
((COUNT) == 0 \
? gen_rtx_MEM (Pmode, plus_constant (arg_pointer_rtx, -2))\
? gen_rtx_MEM (Pmode, arg_pointer_rtx) \
: 0)
/* Before the prologue, the top of the frame is at 2(sp). */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment