This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH for sibcalls on i386
Sorry, for a late reply, but incorporating comments and criticism into
the patch took me longer than expected.
> > +++ pa/pa-linux.h 25 Sep 2002 04:01:52 -0000
> > @@ -189,3 +185,7 @@ Boston, MA 02111-1307, USA. */
> > /* Linux always uses gas. */
> > #undef TARGET_GAS
> > #define TARGET_GAS 1
> > +
> > +/* Sibcalls, stubs, and elf sections don't play well. */
> > +#undef TARGET_FUNCTION_OK_FOR_SIBCALL
> > +#define TARGET_FUNCTION_OK_FOR_SIBCALL hook_tree_tree_bool_false
> [...]
> > +++ pa/pa.c 25 Sep 2002 04:02:18 -0000
> > @@ -194,6 +195,9 @@ static size_t n_deferred_plabels = 0;
> > #undef TARGET_STRIP_NAME_ENCODING
> > #define TARGET_STRIP_NAME_ENCODING pa_strip_name_encoding
> >
> > +#undef TARGET_FUNCTION_OK_FOR_SIBCALL
> > +#define TARGET_FUNCTION_OK_FOR_SIBCALL pa_function_ok_for_sibcall
>
> The pa-linux definition is no longer in effect.
What would be the appropriate way to express that it's not ok to do any
sibcalls when the target is pa-linux? I'm sure pa.c needs to be changed
as it now contains the definition for pa_function_ok_for_sibcall, but I'm
hesitant towards How.
Something like this, inside pa_function_ok_for_sibcall, would probably
work:
if (TARGET_PA_LINUX)
return false;
Any hints would be greatly appreciated.
Cheers,
Andi.