This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH for sibcalls on i386
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: dave at hiauly1 dot hia dot nrc dot ca (John David Anglin)
- Cc: rth at redhat dot com, hp at bitrange dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 1 Oct 2002 00:03:35 -0400 (EDT)
- Subject: Re: PATCH for sibcalls on i386
> > the sibcall machinery, and is independent of it. It should
> > not be shut off by FUNCTION_OK_FOR_SIBCALL.
>
> The main difference between the 32-bit ports (e.g., hppa-linux)
> and hppa64-hpux is that calls on hppa64-hpux always pass a pointer
> to the first argument on on the stack (arg8) as one of the arguments.
> Possibly, this is the reason that there is no sibcall.
This appears to be the reason why we don't get recursive tail calls
on hppa64-hpux. sequence_uses_addressof returns nonzero because
current_function_internal_arg_pointer is found. This causes
no_sibcalls_this_function to be set. Thus, I think that all the
sibcall tests need to be xfailed for this target.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)