From cd49f0735dca5e48b3d110fef812398ef7ba55a6 Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Tue, 12 Mar 2002 15:19:40 +0000 Subject: sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in address calculation. * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in address calculation. From-SVN: r50654 --- gcc/ChangeLog | 5 +++++ gcc/config/sparc/sparc.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6bbc35f..f487e64 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-03-12 Andrew MacLeod + + * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in + address calculation. + 2002-03-12 Ulrich Weigand * config/s390/s390.md (reload_insi, reload_indi): Change mode of diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index c1e472d..aeb1078 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -1949,7 +1949,8 @@ do { \ ? gen_rtx_REG (Pmode, 31) \ : gen_rtx_MEM (Pmode, \ memory_address (Pmode, plus_constant (frame, \ - 15 * UNITS_PER_WORD)))) + 15 * UNITS_PER_WORD \ + + SPARC_STACK_BIAS)))) /* Before the prologue, the return address is %o7 + 8. OK, sometimes it's +12, but always using +8 is close enough for frame unwind purposes. -- cgit v1.1