]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ipa-devirt.c
gcse, ipa-devirt: Use %wd/%wu instead of HOST_WIDE_INT_PRINT* in diagnostics [PR99288]
authorJakub Jelinek <jakub@redhat.com>
Sat, 27 Feb 2021 09:43:28 +0000 (10:43 +0100)
committerJakub Jelinek <jakub@redhat.com>
Sat, 27 Feb 2021 09:43:28 +0000 (10:43 +0100)
commit652623f7c68594b1825a333bf8e83e87d1c3f523
tree65b973e9a9e60277c1fc678b29226e4d0198045b
parent06a9f20f97e788bdff139dcf62d055955debcc8d
gcse, ipa-devirt: Use %wd/%wu instead of HOST_WIDE_INT_PRINT* in diagnostics [PR99288]

HOST_WIDE_INT_PRINT* in the string literals of warning/error/inform etc.
make those messages non-translatable, and we have a perfectly fine
alternative when not using system *printf - %w{d,u}.

2021-02-27  Jakub Jelinek  <jakub@redhat.com>

PR other/99288
* gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
* ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
HOST_WIDE_INT_PRINT_DEC in inform format string.  Fix comment
typos.
gcc/gcse.c
gcc/ipa-devirt.c