diff options
author | Alan Modra <amodra@gmail.com> | 2018-07-25 11:40:48 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-07-25 11:50:51 +0930 |
commit | be3e27bb5554e45d54d7cdc74353dda246239475 (patch) | |
tree | e68311da6851d5749f1e982553a87c30215ebc9d /bfd/elf64-s390.c | |
parent | 5fbad1b90943710ff622e119d1ac6211fda500d0 (diff) | |
download | gdb-be3e27bb5554e45d54d7cdc74353dda246239475.zip gdb-be3e27bb5554e45d54d7cdc74353dda246239475.tar.gz gdb-be3e27bb5554e45d54d7cdc74353dda246239475.tar.bz2 |
Suppress string diagnostics for pre-release GCC
Extends commit 898ade12ee8 to cover other targets.
* elf32-arm.c (elf32_arm_nabi_write_core_note): Disable
-Wstringop-truncation warning for gcc-8.0 too.
* elf32-ppc.c (ppc_elf_write_core_note): Likewise.
* elf64-ppc.c (ppc64_elf_write_core_note): Likewise.
* elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
* elf32-s390.c (elf_s390_write_core_note): Comment fix.
* elf64-s390.c (elf_s390_write_core_note): Likewise.
Diffstat (limited to 'bfd/elf64-s390.c')
-rw-r--r-- | bfd/elf64-s390.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c index 16a62a3..91b76bc 100644 --- a/bfd/elf64-s390.c +++ b/bfd/elf64-s390.c @@ -3787,7 +3787,7 @@ elf_s390_write_core_note (bfd *abfd, char *buf, int *bufsiz, strncpy (data + 40, fname, 16); #if GCC_VERSION == 8000 || GCC_VERSION == 8001 DIAGNOSTIC_PUSH; - /* GCC 8.1 warns about 80 equals destination size with + /* GCC 8.0 and 8.1 warn about 80 equals destination size with -Wstringop-truncation: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85643 */ |