linux-mips
[Top] [All Lists]

Re: bal instruction in gcc 3.x

To: "Maciej W. Rozycki" <macro@linux-mips.org>
Subject: Re: bal instruction in gcc 3.x
From: Thiemo Seufer <ths@networkno.de>
Date: Wed, 20 Jul 2005 11:17:06 +0200
Cc: Pete Popov <ppopov@embeddedalley.com>, Kishore K <hellokishore@gmail.com>, Ralf Baechle <ralf@linux-mips.org>, "'linux-mips@linux-mips.org'" <linux-mips@linux-mips.org>
In-reply-to: <Pine.LNX.4.61L.0507200955390.30702@blysk.ds.pg.gda.pl>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <f07e6e05071909301c212ab4@mail.gmail.com> <20050719164427.GB8758@linux-mips.org> <f07e6e05071910194bab9b16@mail.gmail.com> <1121802786.7285.88.camel@localhost.localdomain> <Pine.LNX.4.61L.0507200955390.30702@blysk.ds.pg.gda.pl>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.9i
Maciej W. Rozycki wrote:
> On Tue, 19 Jul 2005, Pete Popov wrote:
> 
> > Try the attached patch instead.
> 
>  Apart from other changes why not simply s/bal/jal/?  Your proposed code 
> is bad if ever to be built to a 64-bit object.

Non-PIC jal isn't relocateable, the PIC jal wants a regular stack
frame, and the end of the patch shows the 32bit assumption was
already made earlier. :-)


Thiemo

<Prev in Thread] Current Thread [Next in Thread>