mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-12 16:20:06 +00:00
19302b27bd
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). |
||
---|---|---|
.. | ||
types | ||
argp-ldbl.h | ||
cmathcalls.h | ||
cpu-set.h | ||
dlfcn.h | ||
endian.h | ||
err-ldbl.h | ||
error-ldbl.h | ||
error.h | ||
fcntl2.h | ||
getopt_core.h | ||
getopt_ext.h | ||
getopt_posix.h | ||
locale.h | ||
mathcalls-helper-functions.h | ||
mathcalls-narrow.h | ||
mathcalls.h | ||
monetary-ldbl.h | ||
mqueue2.h | ||
poll2.h | ||
posix1_lim.h | ||
posix2_lim.h | ||
printf-ldbl.h | ||
select2.h | ||
setjmp2.h | ||
socket2.h | ||
stab.def | ||
statx-generic.h | ||
statx.h | ||
stdio2.h | ||
stdio-ldbl.h | ||
stdio.h | ||
stdlib-float.h | ||
stdlib-ldbl.h | ||
stdlib.h | ||
string2.h | ||
string_fortified.h | ||
strings_fortified.h | ||
syslog-ldbl.h | ||
syslog.h | ||
types.h | ||
unistd.h | ||
wchar2.h | ||
wchar-ldbl.h | ||
wctype-wchar.h | ||
xopen_lim.h |