aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-devirt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ipa-devirt.c')
-rw-r--r--gcc/ipa-devirt.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
index 203fef3..8cd1100 100644
--- a/gcc/ipa-devirt.c
+++ b/gcc/ipa-devirt.c
@@ -4261,13 +4261,12 @@ ipa_odr_read_section (struct lto_file_decl_data *file_data, const char *data,
" in another translation unit",
this_enum.vals[j].name, warn_name);
/* FIXME: In case there is easy way to print wide_ints,
- perhaps we could do it here instead of overlfow checpl. */
+ perhaps we could do it here instead of overflow check. */
else if (wi::fits_shwi_p (this_enum.vals[j].val)
&& wi::fits_shwi_p (warn_value))
inform (this_enum.vals[j].locus,
- "name %qs is defined to " HOST_WIDE_INT_PRINT_DEC
- " while another translation unit defines "
- "it as " HOST_WIDE_INT_PRINT_DEC,
+ "name %qs is defined to %wd while another "
+ "translation unit defines it as %wd",
warn_name, this_enum.vals[j].val.to_shwi (),
warn_value.to_shwi ());
else