Commit 885fe07c by Richard Henderson Committed by Richard Henderson

mn10300: Better definition of INCOMING_RETURN_ADDR_RTX.

The new definition is more useful to the unwinder.

From-SVN: r168668
parent 7bc62637
2011-01-11 Richard Henderson <rth@redhat.com>
* config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
in terms of the value on the stack, not the MDR register.
2011-01-11 Jan Hubicka <jh@suse.cz>
PR lto/45721
......
......@@ -548,7 +548,10 @@ struct cum_arg
? gen_rtx_MEM (Pmode, arg_pointer_rtx) \
: (rtx) 0)
#define INCOMING_RETURN_ADDR_RTX gen_rtx_REG (Pmode, MDR_REGNUM)
/* The return address is saved both in the stack and in MDR. Using
the stack location is handiest for what unwinding needs. */
#define INCOMING_RETURN_ADDR_RTX \
gen_rtx_MEM (VOIDmode, gen_rtx_REG (VOIDmode, STACK_POINTER_REGNUM))
/* Maximum number of registers that can appear in a valid memory address. */
......
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