[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/21934] gas build fails when using gcc 7
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug gas/21934] gas build fails when using gcc 7 |
Date: |
Wed, 09 Aug 2017 16:38:32 +0000 |
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 gas/21934] New: gas build fails when using gcc 7, bneumeier at gmail dot com, 2017/08/09
- [Bug gas/21934] gas build fails when using gcc 7,
hjl.tools at gmail dot com <=
- [Bug gas/21934] gas build fails when using gcc 7, nickc at redhat dot com, 2017/08/09
- [Bug gas/21934] gas build fails when using gcc 7, hjl.tools at gmail dot com, 2017/08/09
- [Bug gas/21934] gas build fails when using gcc 7, bneumeier at gmail dot com, 2017/08/12
- [Bug gas/21934] gas build fails when using gcc 7, bneumeier at gmail dot com, 2017/08/12
- [Bug gas/21934] gas build fails when using gcc 7, hjl.tools at gmail dot com, 2017/08/12
- [Bug gas/21934] gas build fails when using gcc 7, bneumeier at gmail dot com, 2017/08/12
- [Bug gas/21934] gas build fails when using gcc 7, bneumeier at gmail dot com, 2017/08/12
- [Bug gas/21934] gas build fails when using gcc 7, bneumeier at gmail dot com, 2017/08/12
- [Bug gas/21934] gas build fails when using gcc 7, hjl.tools at gmail dot com, 2017/08/12