From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1984) id 7CCA43858C83; Thu, 1 Sep 2022 21:05:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7CCA43858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662066332; bh=D2RLlD0eZeBI/x2oIJdIaVqlM4D/kGaRduJc/zVwe60=; h=From:To:Subject:Date:From; b=hrqpcFCimpkgDmQbwdNLlnPyKztvxBKpFFfkl27Fxn1PY3Q9ntDJ35Fht6tp4Dy5m RiQQCnUEqTu7vBSWPB4qOQr2ZSmXC0Ni6FRBMbEd5F4S8ndXvqNrx1Hu4yMvcntY6o SesLgOiClUb0UXc+8hlisAhsVtiVKPVZKjbKbVrc= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Tamar Christina To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-2357] AArch64: Fix bootstrap failure due to dump_printf_loc format attribute uses [PR106782] X-Act-Checkin: gcc X-Git-Author: Tamar Christina X-Git-Refname: refs/heads/master X-Git-Oldrev: 8f8b9de6f40d057b4940776acafdeaef3e0a5eb1 X-Git-Newrev: b98c5262d02c13cdbbf3b985859b436adec94d90 Message-Id: <20220901210532.7CCA43858C83@sourceware.org> Date: Thu, 1 Sep 2022 21:05:32 +0000 (GMT) List-Id: https://gcc.gnu.org/g:b98c5262d02c13cdbbf3b985859b436adec94d90 commit r13-2357-gb98c5262d02c13cdbbf3b985859b436adec94d90 Author: Tamar Christina Date: Thu Sep 1 22:04:57 2022 +0100 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. Diff: --- gcc/config/aarch64/aarch64.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index 4b486aeea90..f199e77cd42 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