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: Tulio Magno Quites Machado Filho <tuliom at ascii dot art dot br>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>, Nick Clifton <nickc at redhat dot com>, Pedro Alves <palves at redhat dot com>
- Cc: Binutils <binutils at sourceware dot org>, GDB <gdb-patches at sourceware dot org>
- Cc:
- Date: Mon, 02 Jul 2018 13:25:36 -0300
- 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> <ac96fdc5-62f0-1bfa-5acf-8ca0f9389659@redhat.com> <CAMe9rOo24=MWapo0tU5cSJKRULnV_oLq1djxXEZ5chXe6DeZNQ@mail.gmail.com>
"H.J. Lu" <hjl.tools@gmail.com> writes:
> GCC 8.1 warns about destination size with -Wstringop-truncation:
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85643
>
> Use DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION to silence it.
>
> bfd/
>
> PR binutils/23146
> * bfd-in.h: Include "diagnostics.h".
> * bfd-in2.h: Regenerated.
bfd.h is an installed header, while diagnostics.h is not, causing build
failures on software that include bfd.h, e.g.:
In file included from opagent.c:65:
bfd.h:44:10: fatal error: diagnostics.h: No such file or directory
#include "diagnostics.h"
^~~~~~~~~~~~~~~
--
Tulio Magno