[PATCH] Also install diagnostics.h
H.J. Lu
hjl.tools@gmail.com
Tue Jul 3 14:33:00 GMT 2018
On Mon, Jul 2, 2018 at 9:25 AM, Tulio Magno Quites Machado Filho
<tuliom@ascii.art.br> wrote:
> "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"
> ^~~~~~~~~~~~~~~
>
Here is a patch. OK for master and 2.31 branch?
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Also-install-diagnostics.h.patch
Type: text/x-patch
Size: 2205 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20180703/cb5c2f61/attachment.bin>
More information about the Binutils
mailing list