This is the mail archive of the
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: gcc-patches at gcc dot gnu dot org
- Date: Mon, 30 Sep 2002 12:21:33 -0400 (EDT)
- Subject: Re: PATCH for sibcalls on i386
> Perhaps, in view of the comment,
> /* Sibcalls, stubs, and elf sections don't play well. */
> the macro should be named TARGET_HAS_STUBS_AND_ELF_SECTIONS
> rather than TARGET_PA_LINUX?
That seems reasonable. Sibcalls are not ok on hppa64-hp-hpux* for
the same reason. This was expressed as "! TARGET_64BIT" in the define
for FUNCTION_OK_FOR_SIBCALL in pa.h. This should be changed to
use the above macro if the patch is approved.
All the new sibcall tests fail on hppa64-hp-hpux*. The last two
fail on hppa-linux. For sibcall-1.c, I see that the statement
"Self-recursion tail calls are optimized for all targets, regardless
of presence of sibcall patterns." is incorrect when it comes to
hppa64-hp-hpux*, although it does happen under hppa-linux.
J. David Anglin email@example.com
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)