diff options
author | Richard Henderson <rth@redhat.com> | 2011-01-11 10:11:07 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2011-01-11 10:11:07 -0800 |
commit | 885fe07c5cdea5be07111769240f07313c791560 (patch) | |
tree | fb9dda8cdce6a85e643c9ac264be5e5f6ed292a6 | |
parent | 7bc62637562d77e9d57dbf9c9681411d62f708fe (diff) | |
download | gcc-885fe07c5cdea5be07111769240f07313c791560.zip gcc-885fe07c5cdea5be07111769240f07313c791560.tar.gz gcc-885fe07c5cdea5be07111769240f07313c791560.tar.bz2 |
mn10300: Better definition of INCOMING_RETURN_ADDR_RTX.
The new definition is more useful to the unwinder.
From-SVN: r168668
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mn10300/mn10300.h | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7c42fab..515038d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/gcc/config/mn10300/mn10300.h b/gcc/config/mn10300/mn10300.h index 67516b6..edc17f5 100644 --- a/gcc/config/mn10300/mn10300.h +++ b/gcc/config/mn10300/mn10300.h @@ -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. */ |