glibc/setjmp
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
..
bits Fix GCC 11 -Warray-parameter warning for __sigsetjmp (bug 26647) 2020-10-05 16:46:46 +00:00
__longjmp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
bsd-_setjmp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
bsd-setjmp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
bug269-setjmp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
jmp-unwind.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
jmpbug.c Fix warning in setjmp/jmpbug.c. 2014-11-26 00:45:19 +00:00
longjmp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Makefile Fix GCC 11 -Warray-parameter warning for __sigsetjmp (bug 26647) 2020-10-05 16:46:46 +00:00
setjmp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
setjmp.h Fix GCC 11 -Warray-parameter warning for __sigsetjmp (bug 26647) 2020-10-05 16:46:46 +00:00
sigjmp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-setjmp-fp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-setjmp-static.c ARM: Use movw/movt more when available 2014-10-22 14:20:35 -07:00
tst-setjmp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-sigsetjmp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Versions Update. 2002-02-01 23:24:05 +00:00