This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH 3/3] Use DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION to silence GCC 8
- From: Nick Clifton <nickc at redhat dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>, binutils at sourceware dot org
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 1 Jun 2018 08:59:42 +0100
- Subject: Re: [PATCH 3/3] Use DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION to silence GCC 8
- References: <20180521121557.16535-1-hjl.tools@gmail.com> <20180521121557.16535-3-hjl.tools@gmail.com>
Hi H.J.
> PR binutils/23146
> * bfd-in.h: Include "diagnostics.h".
> * bfd-in2.h: Regenerated.
> * elf32-arm.c (elf32_arm_nabi_write_core_note): Use
> DIAGNOSTIC_PUSH, DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION and
> DIAGNOSTIC_POP to silence GCC 8 warnings with
> -Wstringop-truncation.
> * elf32-ppc.c (ppc_elf_write_core_note): Likewse.
> * elf32-s390.c (elf_s390_write_core_note): Likewse.
> * elf64-ppc.c (ppc64_elf_write_core_note): Likewse.
> * elf64-s390.c (elf_s390_write_core_note): Likewse.
> * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewse.
Approved - please apply.
Cheers
Nick