This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MIPS patch for n32/n64 sibcalls


Richard Henderson <rth@redhat.com> writes:
> On Tue, Dec 02, 2003 at 08:14:07AM +0000, Richard Sandiford wrote:
> > > On Sat, Nov 29, 2003 at 04:32:36PM +0000, Richard Sandiford wrote:
> > > > Anyway, we're allowing lazy binding of sibcalls for n32 & n64.
> > > > That can't work because the stub needs access to the caller's $gp,
> > > > not the caller's caller's.
> > > 
> > > This should be prevented in TARGET_FUNCTION_OK_FOR_SIBCALL.
> > 
> > Why?  IMO, the start-up saving of lazy binding is far outweighed by the
> > performance improvement you get from using sibcalls.
> 
> I think I misunderstood your patch.  You're not trying to prevent
> the sibcall, but rather to prevent the lazy binding.  By using a
> %got reference to the symbol instead of a %call reference, right?

Right.  My message should have been clearer, sorry.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]