ppc: fix for pr31281, ObjC try-catch ICEs 4.2

Andrew Pinski pinskia@gmail.com
Wed Mar 28 18:30:00 GMT 2007


On 3/28/07, Stuart Hastings <stuart@apple.com> wrote:
> Do you want the testcase?  It's pretty nonsensical:
>
> int f(unsigned int i)
> {
>    @try { } @catch(id) { }
>    for (;;)
>      for (;;)
>        @try {
>          if (i)
>            break;
>        } @catch(id) { }
> }
>
> If you want the testcase, I'm guessing it would become .../testsuite/
> objc.dg/pr31281.m (?).

Can you turn this into a quick execute testcase and put it into
objc/execute/exceptions so that it gets run by both the next and gnu
runtimes.  It might be better if objc/compile/exceptions is added for
such compile time testcase also.

Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list