This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ppc: fix for pr31281, ObjC try-catch ICEs 4.2
- From: Mike Stump <mrs at apple dot com>
- To: Stuart Hastings <stuart at apple dot com>
- Cc: gcc-patches at gcc dot gnu dot org, dje at watson dot ibm dot com
- Date: Wed, 21 Mar 2007 11:08:09 -0700
- Subject: Re: ppc: fix for pr31281, ObjC try-catch ICEs 4.2
- References: <3448EC09-17A0-41BE-9972-3F58F76178EC@apple.com>
On Mar 20, 2007, at 9:57 AM, Stuart Hastings wrote:
While the above patch fixes the ICE and produces correct-looking
code, the generated code is ugly, as GCC generates a mfcr/mtcr,
much shifting and masking, plus a conditional branch to
accomplish... an unconditional branch. I believe the cause is in
the Objective-C front-end; removing the 'volatile' attribute from
the artificial 'rethrow' variable fixes the ugly code. Note the
first change is inside a large (and welcome!) comment:
O.K. to commit into 4.2?
This is Ok for mainline, as applicable. It is Ok for 4.2, once
checked into mainline if applicable).