[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/21934] gas build fails when using gcc 7
From: |
bneumeier at gmail dot com |
Subject: |
[Bug gas/21934] gas build fails when using gcc 7 |
Date: |
Sat, 12 Aug 2017 15:35:51 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21934
--- Comment #8 from Brett Neumeier <bneumeier at gmail dot com> ---
Created attachment 10342
--> https://sourceware.org/bugzilla/attachment.cgi?id=10342&action=edit
compressed pre-processed tc-i386.c source, exhibiting the issue
This is the result of running the failing command with an -E switch. When I try
to compile it with:
address@hidden:/tmp$ armv7l-unknown-linux-gnueabihf-gcc -S -O2 -g -Wall p.i -W
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Werror
-Wwrite-strings -MT -MD -MP -Wno-implicit-fallthrough
It exhibits the issue:
-----------------cut here-----------------
/home/random/work/build/binutils-2.29/gas/config/tc-i386.c: In function
'output_invalid':
/home/random/work/build/binutils-2.29/gas/config/tc-i386.c:9719:8: error: '%x'
directive output may be truncated writing between 1 and 8 bytes into a region
of size 5 [-Werror=format-truncation=]
"(0x%x)", (unsigned char) c);
^~~~~~~~
/home/random/work/build/binutils-2.29/gas/config/tc-i386.c:9719:8: note:
directive argument in the range [0, 2147483647]
/home/random/work/build/binutils-2.29/gas/config/tc-i386.c:9718:5: note:
'snprintf' output between 6 and 13 bytes into a destination of size 8
snprintf (output_invalid_buf, sizeof (output_invalid_buf),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"(0x%x)", (unsigned char) c);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
-----------------cut here-----------------
I regret that I am not savvy enough to transform this into a minimal test case.
I can try, if it will help.
--
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, 2017/08/09
- [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 <=
- [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, 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/13
- [Bug gas/21934] gas build fails when using gcc 7, bneumeier at gmail dot com, 2017/08/15
- [Bug gas/21934] gas build fails when using gcc 7, hjl.tools at gmail dot com, 2017/08/15
- [Bug gas/21934] gas build fails when using gcc 7, bneumeier at gmail dot com, 2017/08/17
- [Bug gas/21934] gas build fails when using gcc 7, hjl.tools at gmail dot com, 2017/08/17