[Bug translation/93836] teach xgettext what HOST_WIDE_INT_PRINT means

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Wed Feb 19 22:27:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93836

--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
It is never valid to use HOST_WIDE_INT_PRINT macros in calls to diagnostic 
functions, because the HOST_WIDE_INT_PRINT macros expand to host printf 
formats (e.g. "I64" on MinGW host), which may not be understood by the 
pretty-printing code which has its own host-independent set of formats.

The bug here is not in xgettext, it's that a call to a GCC diagnostic 
function should be using %wd not HOST_WIDE_INT_PRINT.


More information about the Gcc-bugs mailing list