This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] x86: Add __sigsetjmp_cancel and __setjmp_cancel


On Fri, Mar 16, 2018 at 1:24 AM, Florian Weimer <fw@deneb.enyo.de> wrote:
> * H. J. Lu:
>
>> +/* Function used in the macros.  */
>> +struct __jmp_buf_tag;
>> +extern int __sigsetjmp_cancel (struct __jmp_buf_tag *__env, int __savemask)
>> +  __THROWNL __attribute_returns_twice__;
>
> How is __THROWNL correct here?  We do unwind through this function.
> The __EXCEPTIONS guard is not effective because of LTO, and some
> applications undefine __EXCEPTIONS to avoid the table-based
> cancellation handlers.

This is moved from <pthread.h>:

/* Function used in the macros.  */
struct __jmp_buf_tag;
extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) __THROWNL;

Is <pthread.h> wrong?

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]