]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PATCH] H8/300: PR target/109189 Silence -Wformat warnings on Windows
authorJan Dubiec <jdx@o2.pl>
Sat, 1 Mar 2025 05:01:42 +0000 (22:01 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Sat, 1 Mar 2025 05:02:59 +0000 (22:02 -0700)
commit2fc17730dcef182bba3c9d4e32fc00302ef421fe
tree725c6324994608b8548cbb083bb59fd7247ddeb8
parent20d95bfa29057104b352e5d82699edede8658499
[PATCH] H8/300: PR target/109189 Silence -Wformat warnings on Windows

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.

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.
gcc/config/h8300/h8300.cc