--- Comment #8 from Brett Neumeier <bneumeier at gmail dot com> ---
Created attachment 10342
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:

random@svaha:/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
/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-binutils mailing list

Reply via email to