This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: sh-elf: PR target/15886
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: kkojima at rr dot iij4u dot or dot jp (Kaz Kojima), gcc-patches at gcc dot gnu dot org
- Cc: joern dot rennecke at superh dot com, gcc at gcc dot gnu dot org, aoliva at redhat dot com
- Date: Fri, 11 Jun 2004 19:17:58 +0100 (BST)
- Subject: Re: sh-elf: PR target/15886
> I'll regtest it on sh-elf-3_5-branch and send it to gcc-patch if
> there are no problems.
I've already tested this and applied it to mainline and sh-elf-3_5-branch:
2004-06-11 J"orn Rennecke <joern.rennecke@superh.com>
* sh.h (ALLOCATE_INITIAL_VALUE): Use return_address_pointer_rtx.
Index: config/sh/sh.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sh/sh.h,v
retrieving revision 1.240
diff -p -r1.240 sh.h
*** config/sh/sh.h 21 May 2004 01:03:20 -0000 1.240
--- config/sh/sh.h 11 Jun 2004 17:09:10 -0000
*************** extern int rtx_equal_function_value_matt
*** 3305,3314 ****
& ~ CALL_COOKIE_RET_TRAMP (1)) \
|| current_function_has_nonlocal_label)) \
? (hard_reg) \
! : gen_rtx_MEM (Pmode, TARGET_SH5 \
! ? (plus_constant (arg_pointer_rtx, \
! TARGET_SHMEDIA64 ? -8 : -4)) \
! : frame_pointer_rtx)) \
: NULL_RTX)
#endif /* ! GCC_SH_H */
--- 3305,3311 ----
& ~ CALL_COOKIE_RET_TRAMP (1)) \
|| current_function_has_nonlocal_label)) \
? (hard_reg) \
! : gen_rtx_MEM (Pmode, return_address_pointer_rtx)) \
: NULL_RTX)
#endif /* ! GCC_SH_H */