Disable spurious -Wstringop-overflow for setjmp/longjmp (bug 26647)

Andreas Schwab schwab@linux-m68k.org
Thu Oct 29 10:06:00 GMT 2020


On Okt 29 2020, Florian Weimer via Libc-alpha wrote:

> * Joseph Myers:
>
>> Also, similar errors appear in the testsuite from __sigsetjmp calls in the 
>> installed pthread.h, and presumably would apply in user programs that use 
>> these pthread.h macros.  Should we apply a change like this one (with 
>> appropriate version conditionals and comments; as an installed header, it 
>> can't use libc-diag.h) to address such errors both for the glibc testsuite 
>> and for user programs?  (With this and the other three patches I've posted 
>> today, both glibc and its testsuite build OK for arm-linux-gnueabi.)
>
> I do not think we can assume _Pragma support in this context.
>
> Do we have to declare the first argument of __sigsetjmp as
> struct __jmp_buf_tag __env[1]?

How about exporting an alias with the expected signature?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Libc-alpha mailing list