]> git.ipfire.org Git - thirdparty/glibc.git/commit
Disable strncat test array-bounds warnings for GCC 8.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 18 Dec 2017 22:52:41 +0000 (22:52 +0000)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 22 Oct 2018 12:15:29 +0000 (14:15 +0200)
commit70e810a30cb15d0b54118f8eb92aa656b945b984
treef6db1401586f7530c6e546a6945ffc6ad0ab3090
parentdd03d15e283de6c2fff8f5204b092e9d9d127cc6
Disable strncat test array-bounds warnings for GCC 8.

Some strncat tests fail to build with GCC 8 because of -Warray-bounds
warnings.  These tests are deliberately test over-large size arguments
passed to strncat, and already disable -Wstringop-overflow warnings,
but now the warnings for these tests come under -Warray-bounds so that
option needs disabling for them as well, which this patch does (with
an update on the comments; the DIAG_IGNORE_NEEDS_COMMENT call for
-Warray-bounds doesn't need to be conditional itself, because that
option is supported by all versions of GCC that can build glibc).

Tested compilation with build-many-glibcs.py for aarch64-linux-gnu.

* string/tester.c (test_strncat): Also disable -Warray-bounds
warnings for two tests.

(cherry picked from commit 1421f39b7eadd3b5fbd2a3f2da1fc006b69fbc42)
ChangeLog
string/tester.c