This is the mail archive of the
gcc@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)
- Cc: gcc at gcc dot gnu dot org, joern dot rennecke at superh dot com, aoliva at redhat dot com
- Date: Fri, 11 Jun 2004 15:20:40 +0100 (BST)
- Subject: Re: sh-elf: PR target/15886
> This looks odd for TARGET_SH1. pr is saved at the address pointed
> by frame_pointer_rtx + frame size for TARGET_SH1, but it seems that
> the final frame size can't be known here because allocate_initial_values
> is called in regalloc phase.
Yes, indeed. It appears it should use gen_rtx_MEM (Pmode, return_address_pointer_rtx) both for TARGET_SH5 and ! TARGET_SH5.
> Is it wrong to just return NULL_RTX for that case?
Yes, it is wrong, because that would invalidate the RETURN_ADDRESS_POINTER
case of initial_elimination_offset.