diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-12-18 22:52:41 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-12-18 22:52:41 +0000 |
commit | 1421f39b7eadd3b5fbd2a3f2da1fc006b69fbc42 (patch) | |
tree | 94de853f9f553aa69e99c9f6556604ee2defa011 /ChangeLog | |
parent | 00c714df398b63934540d95ce3792596f7a94a6c (diff) | |
download | glibc-1421f39b7eadd3b5fbd2a3f2da1fc006b69fbc42.zip glibc-1421f39b7eadd3b5fbd2a3f2da1fc006b69fbc42.tar.gz glibc-1421f39b7eadd3b5fbd2a3f2da1fc006b69fbc42.tar.bz2 |
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2017-12-18 Joseph Myers <joseph@codesourcery.com> + + * string/tester.c (test_strncat): Also disable -Warray-bounds + warnings for two tests. + 2017-12-18 H.J. Lu <hongjiu.lu@intel.com> [BZ #22614] |