glibc/string
Joseph Myers eed005270a Disable warnings in string/tester.c at top level.
string/tester.c contains code that correctly triggers various GCC
warnings about dubious uses of string functions (uses that are being
deliberately tested there), and duly disables those warnings around
the relevant code.

A change in GCC mainline resulted in this code failing to compile with
a -Warray-bounds error, despite the location with the error having
-Warray-bounds already disabled.  This has been reported as
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91890>.  This patch
avoids that problem and possible future issues with these diagnostics
by moving all the warning disabling in this file to top level, as
suggested by Florian in
<https://sourceware.org/ml/libc-alpha/2019-10/msg00033.html>, rather
than only doing it locally around specific function calls.

Tested with build-many-glibcs.py for aarch64-linux-gnu with GCC
mainline (with only the conform/ failures noted in
<https://sourceware.org/ml/libc-alpha/2019-10/msg00043.html>).

	* string/tester.c: Ignore -Warray-bounds and
	-Wmemset-transposed-args at top level.
	[__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict and -Wstringop-overflow=
	at top level.
	[__GNUC_PREREQ (8, 0)]: Ignore -Wstringop-truncation at top level.
	(test_stpncpy): Do not ignore warnings here.
	(test_strncat): Likewise.
	(test_strncpy): Likewise.
	(test_memset): Likewise.
2019-10-02 17:26:14 +00:00
..
bits Split up endian.h to minimize exposure of BYTE_ORDER. 2019-10-01 14:54:46 -07:00
_strerror.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-addsep.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-append.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-count.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-create.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-ctsep.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-delete.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-extract.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-insert.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-next.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-replace.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz-stringify.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
argz.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
basename.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
bcopy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
bug-envz1.c
bug-strcoll1.c
bug-strcoll2.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
bug-strncat1.c
bug-strpbrk1.c Fix bug-strspn1.c, bug-strpbrk1.c build with GCC mainline. 2018-06-20 22:18:22 +00:00
bug-strspn1.c Fix bug-strspn1.c, bug-strpbrk1.c build with GCC mainline. 2018-06-20 22:18:22 +00:00
bug-strtok1.c
byteswap.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
bzero.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
Depend
endian.h Split up endian.h to minimize exposure of BYTE_ORDER. 2019-10-01 14:54:46 -07:00
envz.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
envz.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
explicit_bzero.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ffs.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ffsll.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
inl-tester.c
Makefile Split up endian.h to minimize exposure of BYTE_ORDER. 2019-10-01 14:54:46 -07:00
memccpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memcmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memcpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memfrob.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memmem.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memmove.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memory.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mempcpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memrchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
memset.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
noinl-tester.c
rawmemchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
stpcpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
stpncpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
str-two-way.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
stratcliff.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcasecmp_l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcasecmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcasestr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcat.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strchrnul.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcoll_l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcoll.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strcspn.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strdup.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strerror_l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strerror.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strfry.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
string-inlines.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
string.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strings.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strlen.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strncase_l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strncase.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strncat.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strncmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strncpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strndup.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strnlen.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strpbrk.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strrchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strsep.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strsignal.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strspn.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strstr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strtok_r.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strtok.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strverscmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strxfrm_l.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
strxfrm.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
swab.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-bcopy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-bzero.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-endian-file-scope.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-endian-sign-conversion.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-endian-types.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-explicit_bzero.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-ffs.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-memccpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-memchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-memcmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-memcpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-memmem.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-memmove.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-mempcpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-memrchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-memset.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-rawmemchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-stpcpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-stpncpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strcasecmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strcasestr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strcat.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strchrnul.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strcmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strcpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strcspn.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strerror-errno.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-string.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strlen.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strncasecmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strncat.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strncmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strncpy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strnlen.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strpbrk.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strrchr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strspn.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-strstr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
testcopy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tester.c Disable warnings in string/tester.c at top level. 2019-10-02 17:26:14 +00:00
tst-bswap.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-cmp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-endian.c
tst-inlcall.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-strcoll-overflow.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-strfry.c
tst-strlen.c
tst-strtok_r.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-strtok.c
tst-strxfrm2.c
tst-strxfrm.c
tst-svc2.c
tst-svc.c
tst-svc.expect
tst-svc.input
tst-xbzero-opt.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
Versions
wordcopy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpg-strerror.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00