bug-binutils
[Top][All Lists]
Advanced

[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: Tue, 15 Aug 2017 14:46:42 +0000

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

--- Comment #13 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Brett Neumeier from comment #12)
> Created attachment 10346 [details]
> improved fix suggested by Martin Sebor
> 
> I filed a GCC bug (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81840) and
> mentioned that here, but currently the GCC bugzilla denies that bug exists.
> Weird.

Bugzilla server crashed yesterday and all yesterday's changes are lost.

> Anyway, in a comment on that bug, Martin Sebor suggested adding a "hh"
> prefix to the snprintf conversion specifier, to explicitly inform GCC that
> the integer conversion corresponds to a char argument. That does indeed
> avoid the false-positive warning message, and seems compliant with the
> defined behavior of printf, so maybe it makes sense to apply that change
> here in binutils?

There is cast to (unsigned char).  Why does GCC see that?  Why does
it only happen on arm? Also does 'hh" work with all compilers on all
supported hosts?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]