https://sourceware.org/bugzilla/show_bug.cgi?id=21934
--- Comment #4 from Brett Neumeier <bneumeier at gmail dot com> ---
(In reply to H.J. Lu from comment #3)
> Here is a small testcase:
>
> [hjl@gnu-6 config]$ cat /tmp/p.i
> static char output_invalid_buf[sizeof (unsigned char) * 2 + 5];
>
> char *
> output_invalid (int c)
> {
> __builtin_snprintf (output_invalid_buf, sizeof (output_invalid_buf),
> "(0x%x)", (unsigned char) c);
> return output_invalid_buf;
> }
> [hjl@gnu-6 config]$ gcc -S -O2 -g -Wall /tmp/p.i -W
> [hjl@gnu-6 config]$ gcc -S -O2 -g -Wall /tmp/p.i -W -m32
> [hjl@gnu-6 config]$
>
> Please try it with your GCC 7.
OK!
random@svaha:/tmp$ x86_64-cbl-linux-gnu-gcc -S -O2 -g -Wall p.i -W
random@svaha:/tmp$
That compilation succeeds and produces p.s, which I am attaching.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils