]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
AArch64: Fix bootstrap failure due to dump_printf_loc format attribute uses [PR106782]
authorTamar Christina <tamar.christina@arm.com>
Thu, 1 Sep 2022 21:04:57 +0000 (22:04 +0100)
committerTamar Christina <tamar.christina@arm.com>
Thu, 1 Sep 2022 21:04:57 +0000 (22:04 +0100)
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.

gcc/config/aarch64/aarch64.cc

index 4b486aeea90ea2afb9cdd96a4dbe15c5bb2abd7a..f199e77cd4296cd3556641051072dabc9f5e51fa 100644 (file)
@@ -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