PING: PATCH [mainline] use of save_world/rest_world calls in apple-ppc-darwin prologue/epilogue

Fariborz Jahanian fjahanian@apple.com
Fri Aug 6 00:16:00 GMT 2004


On Aug 5, 2004, at 5:01 PM, Geoffrey Keating wrote:

>
> On 05/08/2004, at 4:51 PM, Dale Johannesen wrote:
>
>>
>> On Aug 5, 2004, at 4:44 PM, Geoffrey Keating wrote:
>>
>> I believe it's invoked for functions that call setjmp.  70K seems 
>> high for that though.
>
> There used to be a bug that caused it to be invoked for functions that 
> called setjmp, but the bug was fixed.
>

It is invoked for this test case:


void foo (void *) __attribute__ ((noreturn));

void
bar (void *x)
{
   if (__builtin_setjmp (x))
     return;
   foo (x);
}

- fariborz



More information about the Gcc-patches mailing list