bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/21934] New: gas build fails when using gcc 7


From: bneumeier at gmail dot com
Subject: [Bug gas/21934] New: gas build fails when using gcc 7
Date: Wed, 09 Aug 2017 16:00:37 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=21934

            Bug ID: 21934
           Summary: gas build fails when using gcc 7
           Product: binutils
           Version: 2.29
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: bneumeier at gmail dot com
  Target Milestone: ---

Created attachment 10331
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10331&action=edit
Fix a gas build error when using gcc 7

I found this only when doing an ARM-to-x86_64 cross-toolchain build, but I
presume it can occur in other circumstances as well.

When using gcc 7, config/tc-i386.c fails to compile because of a compiler
warning:

In function 'output_invalid':
9719:12: error: '%x' directive output may be truncated writing between 1 and 8
bytes into a region of size 5 [-Werror=format-truncation=]

This is similar to other issues I found corrected in binutils 2.29, e.g. PR
21096, and I was able to fix it similarly by increasing the size of the buffer
slightly. Patch attached.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]