[PATCH] Fix unsafe function attributes for special functions (PR 71876)

Jeff Law law@redhat.com
Wed Jul 20 16:15:00 GMT 2016


On 07/20/2016 05:53 AM, Richard Biener wrote:
>> Is it OK after boot-strap and regression-testing?
>
> I think the __builtin_setjmp change is wrong - __builtin_setjmp is
> _not_ 'setjmp' it is part of the GCC internal machinery (using setjmp
> and longjmp in the end) for SJLJ exception handing.
>
> Am I correct Eric?
That is correct.  __builtin_setjmp (and friends) are part of the SJLJ 
exception handling code.   They use a fixed sized buffer (5 words) to 
store the key items (as opposed to the OS defined jmp_buf structure 
which is usually considerably larger).

jeff



More information about the Gcc-patches mailing list