[MIPS PATCH RFA] fix serious problem w/ MIPS .cprestore.

Thiemo Seufer ica2_ts@csv.ica.uni-stuttgart.de
Mon Sep 16 18:21:00 GMT 2002


cgd@broadcom.com wrote:
> At Sun, 15 Sep 2002 03:43:15 +0200, Thiemo Seufer wrote:
> > > +	# avoid confusion: without something here, the lw above might be
> > > +	# put into the delay slot for the jalr below!
> > > +	nop
> > > +
> > > +	jal	end		# 0054 jalr	t9
> > > +				# 0058 nop
> > > +				# 005c lw	gp,8(sp)
> > > +	.end	func1
> > 
> > To avoid confusion: What about adding a proper function epilogue
> > at the function's end?
> 
> "... which would be?"

Hm, would depend on the prologue part left out. :-)

> (i copied the struture of this test from the mips-abi32-pic test, and,
> well, it does the same thing I did...)
> 
> Is there any real benefit to doing that in this test, that wouldn't be
> had from doing it in an entirely separate test?

No, it would only look more common to me.


Thiemo



More information about the Binutils mailing list