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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-08-09
                 CC|                            |hjl.tools at gmail dot com
     Ever confirmed|0                           |1

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Brett Neumeier from comment #0)
> Created attachment 10331 [details]
> 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=]

Why don't I see on i386 cross to x86_64?  We have

static char output_invalid_buf[sizeof (unsigned char) * 2 + 6];

It has 8 bytes, not 5.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to