glibc/csu
Joseph Myers 2098d4034d Disable spurious -Wstringop-overflow for setjmp/longjmp (bug 26647)
Building glibc with GCC 11 fails with (among other warnings) spurious
-Wstringop-overflow warnings from calls to setjmp and longjmp with a
pointer to a pthread_unwind_buf that is smaller than jmp_buf.  As
discussed in bug 26647, the warning in libc-start.c is a false
positive, because setjmp and longjmp do not access anything (the
signal mask) beyond the common prefix of the two structures, so this
patch disables the warning for that call to setjmp, as well as for two
calls in NPTL code that produce the same warning and look like false
positives for the same reason.

Tested with build-many-glibcs.py for arm-linux-gnueabi, where this
allows the build to get further.

Reviewed-by: DJ Delorie <dj@redhat.com>
2020-10-30 21:38:31 +00:00
..
abi-note.c Rewrite abi-note.S in C. 2020-07-08 15:02:37 +01:00
check_fds.c Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
dso_handle.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
elf-init.c Introduce <elf-initfini.h> and ELF_INITFINI for all architectures 2020-02-18 15:12:25 +01:00
errno-loc.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
errno.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gmon-start.c Introduce <elf-initfini.h> and ELF_INITFINI for all architectures 2020-02-18 15:12:25 +01:00
init-first.c Remove NO_CTORS_DTORS_SECTIONS macro 2020-05-18 15:39:34 +02:00
init.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
libc-start.c Disable spurious -Wstringop-overflow for setjmp/longjmp (bug 26647) 2020-10-30 21:38:31 +00:00
libc-tls.c Linux: Remove rseq support 2020-07-16 17:55:35 +02:00
Makefile Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
start.c More fallout from supporting only ELF 2012-01-08 00:45:01 -05:00
static-reloc.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sysdep.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
version.c Update copyright dates not handled by scripts/update-copyrights. 2020-01-01 00:21:22 +00:00
Versions Remove unused %include lines from Versions files. 2014-02-22 00:58:54 -08:00