DWARF2 exception doesn't work with gcc and gas on MIPS.

Richard Henderson rth@redhat.com
Thu Jun 14 10:19:00 GMT 2001


On Wed, Jun 13, 2001 at 09:29:40PM -0700, H . J . Lu wrote:
> Now we have
> 
> $LEHB5:
>         la      $25,foobar
> 	jalr	$25
> 	nop
> 	lw	$gp,cprestore($sp)
> $LEHE5:
> 
> When foobar throws an exception, GP won't get restored. What we want is
> 
> $LEHB5:
>         la      $25,foobar
> 	jalr	$25
> 	nop
> $LEHE5:
> 	lw	$gp,cprestore($sp)

Um, what exactly do you think the difference between these two is?

Hint: nothing.

I could have sworn there was an exception_receiver pattern on mips
to handle this, but I don't see it now.  It's relatively easy to fix;
see TARGET_LD_BUGGY_LDGP is handled on alpha.


r~



More information about the Binutils mailing list