Allow embedded timestamps by C/C++ macros to be set externally (3)

Joseph Myers joseph@codesourcery.com
Tue May 10 15:51:00 GMT 2016


On Tue, 10 May 2016, Bernd Schmidt wrote:

> I think Andreas' concern is that this might need to have a "ll" suffix. The
> simplest option might be to use the HOST_WIDE_INT_C macro, and then
> HOST_WIDE_INT_PRINT_DEC for the error message.

HOST_WIDE_INT_PRINT_DEC is a host printf format, not a format for GCC's 
diagnostic functions such as error_at.  Formats such as %wd must be used 
with the latter.  (Formats for GCC's diagnostic functions also mustn't 
depend on the host, or involve concatenation with macros, so that the 
messages can be translated.)

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list