linux-mips
[Top] [All Lists]

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

To: "H . J . Lu" <hjl@lucon.org>
Subject: Re: DWARF2 exception doesn't work with gcc and gas on MIPS.
From: Richard Henderson <rth@redhat.com>
Date: Thu, 14 Jun 2001 10:19:51 -0700
Cc: gcc@gcc.gnu.org, binutils@sourceware.cygnus.com, linux-mips@oss.sgi.com
In-reply-to: <20010613212940.A22683@lucon.org>; from hjl@lucon.org on Wed, Jun 13, 2001 at 09:29:40PM -0700
Mail-followup-to: Richard Henderson <rth@redhat.com>, "H . J . Lu" <hjl@lucon.org>, gcc@gcc.gnu.org, binutils@sourceware.cygnus.com, linux-mips@oss.sgi.com
References: <20010613212940.A22683@lucon.org>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
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~

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