aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-02-27 10:43:28 +0100
committerJakub Jelinek <jakub@redhat.com>2021-02-27 10:43:28 +0100
commit652623f7c68594b1825a333bf8e83e87d1c3f523 (patch)
tree65b973e9a9e60277c1fc678b29226e4d0198045b /gcc/gcse.c
parent06a9f20f97e788bdff139dcf62d055955debcc8d (diff)
downloadgcc-652623f7c68594b1825a333bf8e83e87d1c3f523.zip
gcc-652623f7c68594b1825a333bf8e83e87d1c3f523.tar.gz
gcc-652623f7c68594b1825a333bf8e83e87d1c3f523.tar.bz2
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.
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 2c81fe4..210dc7b 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -4011,8 +4011,7 @@ gcse_or_cprop_is_too_expensive (const char *pass)
{
warning (OPT_Wdisabled_optimization,
"%s: %d basic blocks and %d registers; "
- "increase %<--param max-gcse-memory%> above "
- HOST_WIDE_INT_PRINT_UNSIGNED,
+ "increase %<--param max-gcse-memory%> above %wu",
pass, n_basic_blocks_for_fn (cfun), max_reg_num (),
memory_request / 1024);