This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: EH_RETURN_STACKADJ_RTX / EH_RETURN_DATA_REGNO vs. EH_RETURN_HANDLER_RTX / eh_return
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc at gcc dot gnu dot org, hp at bitrange dot com, joern dot rennecke at superh dot com
- Date: Wed, 13 Nov 2002 21:44:14 -0500 (EST)
- Subject: Re: EH_RETURN_STACKADJ_RTX / EH_RETURN_DATA_REGNO vs. EH_RETURN_HANDLER_RTX / eh_return
> A target does not *need* the eh_return pattern if the usual
> epilogue code looks at current_function_calls_eh_return and if
> that's nonzero:
>
> - adds EH_RETURN_STACKADJ_RTX to the stack-pointer.
> - restores all EH_RETURN_DATA_REGNO, even if they're
> normally clobbered.
This is exactly what we arrived at on the pa. I didn't know what I
was doing but it seems to work. We couldn't use a eh_return pattern
because it is expanded too early.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)