aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamar Christina <tamar.christina@arm.com>2022-09-01 22:04:57 +0100
committerTamar Christina <tamar.christina@arm.com>2022-09-01 22:04:57 +0100
commitb98c5262d02c13cdbbf3b985859b436adec94d90 (patch)
tree3b1fdc5e1ec4841418ca9004b7dff1be5f39c3c8
parent8f8b9de6f40d057b4940776acafdeaef3e0a5eb1 (diff)
downloadgcc-b98c5262d02c13cdbbf3b985859b436adec94d90.zip
gcc-b98c5262d02c13cdbbf3b985859b436adec94d90.tar.gz
gcc-b98c5262d02c13cdbbf3b985859b436adec94d90.tar.bz2
AArch64: Fix bootstrap failure due to dump_printf_loc format attribute uses [PR106782]
This fixes the bootstrap failure on AArch64 following -Werror=format by correcting the print format modifiers in the backend. gcc/ChangeLog: PR other/106782 * config/aarch64/aarch64.cc (aarch64_vector_costs::prefer_unrolled_loop): Replace %u with HOST_WIDE_INT_PRINT_UNSIGNED.
-rw-r--r--gcc/config/aarch64/aarch64.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc
index 4b486ae..f199e77 100644
--- a/gcc/config/aarch64/aarch64.cc
+++ b/gcc/config/aarch64/aarch64.cc
@@ -16671,7 +16671,8 @@ aarch64_vector_costs::prefer_unrolled_loop () const
if (dump_enabled_p ())
dump_printf_loc (MSG_NOTE, vect_location, "Number of insns in"
- " unrolled Advanced SIMD loop = %d\n",
+ " unrolled Advanced SIMD loop = "
+ HOST_WIDE_INT_PRINT_UNSIGNED "\n",
m_unrolled_advsimd_stmts);
/* The balance here is tricky. On the one hand, we can't be sure whether