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] fix $gp restore bug


"Maciej W. Rozycki" <macro@linux-mips.org> writes:
> On Tue, 3 Mar 2009, Adam Nemet wrote:
>> Also, Richard's point is, that once you work out this sequence, you could use
>> it even if there is a GOT register instead of extending the lifetime of the
>> GOT register to all branches.  But I agree, this latter point might be
>> something worthwhile to measure.
>
>  For new ABIs I don't think you can get anywhere with -mxgot if $gp has 
> not been stored in the prologue and GCC cannot allocate another register 
> Would it be possible to do that for "big" functions unconditionally?

Just so that this doesn't go answered: I don't think -mxgot affects
things one way or the other.  We use %got_page/%got_ofst for -mxgot
references to local symbols, just as we do for normal GOTs.  And -mxgot
doesn't change the situations in which we decide we need (or don't need)
a global pointer.

Richard


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