On Mon, Jul 2, 2018 at 9:25 AM, Tulio Magno Quites Machado Filho wrote: > "H.J. Lu" 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" > ^~~~~~~~~~~~~~~ > Here is a patch. OK for master and 2.31 branch? -- H.J.