On 2/27/25 2:42 PM, Jan Dubiec wrote:
This patch fixes annoying -Wformat warnings when gcc is built
on Windows/MinGW64. Instead of %ld it uses HOST_WIDE_INT_PRINT_DEC
macro, just like many other targets do.

2025-02-27  Jan Dubiec <j...@o2.pl>

     PR target/109189

gcc/ChangeLog:

     * config/h8300/h8300.cc (h8300_print_operand): Replace %ld format
     strings with HOST_WIDE_INT_PRINT_DEC macro in order to silence
     -Wformat warnings when building on Windows/MinGW64.
Thanks. I think all this code is original stuff from Steve (so circa 1994). Thanks for cleaning it up!

I've pushed this to the trunk. While we are in stage4, this is clearly isolated to the H8 and should be NFC.

Jeff

Reply via email to