1
0
mirror of https://sourceware.org/git/glibc.git synced 2026-01-06 11:51:29 +03:00
Files
glibc/include
Joseph Myers 19302b27bd Fix GCC 11 -Warray-parameter warning for __sigsetjmp (bug 26647)
This patch fixes part of bug 26647 (-Werror=array-parameter error
building with GCC 11 because of __sigsetjmp being declared using an
array parameter in one header and a pointer parameter in another).

The fix is to split the struct __jmp_buf_tag definition out to a
separate bits/types/ header so it can be included in pthread.h, so
that pthread.h can declare __sigsetjmp with the type contents visible,
so can use an array (as in setjmp.h) rather than a pointer in the
declaration.

Note that several other build failures with GCC 11 remain.  This does
not fix the jmp_buf-related -Wstringop-overflow errors (also discussed
in bug 26647), or -Warray-parameter errors for other functions (bug
26686), or -Warray-bounds errors (bug 26687).

Tested, with older compilers, natively for x86_64 and with
build-many-glibc.py for aarch64-linux-gnu.  Tested with
build-many-glibcs.py with GCC mainline for aarch64-linux-gnu that this
gets past the -Warray-parameter issue for __sigsetjmp (with the next
build failure being the other one discussed in bug 26647).
2020-10-05 16:46:46 +00:00
..
2020-04-27 10:34:52 -04:00
2020-09-28 17:28:39 -03:00
2016-10-28 22:40:16 -04:00
2018-03-25 00:48:01 +01:00
2020-08-04 22:17:00 -04:00
2017-04-07 07:45:53 -04:00
2020-08-04 22:58:58 -07:00
2020-07-21 07:33:50 +02:00
2017-11-22 22:21:10 +00:00
2019-05-02 11:42:51 +02:00
2019-10-09 17:48:41 -03:00
2020-07-21 07:34:50 +02:00
2020-09-28 16:22:03 -03:00
2019-11-06 09:20:52 -03:00