* [PATCH] aarch64: fix format specifier
@ 2023-08-18 16:37 FX Coudert
2023-08-21 16:34 ` Richard Earnshaw (lists)
0 siblings, 1 reply; 2+ messages in thread
From: FX Coudert @ 2023-08-18 16:37 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 122 bytes --]
A rather trivial fix for fprintf() specifier of a HOST_WIDE_INT value.
Tested on aarch64-apple-darwin. OK to commit?
FX
[-- Attachment #2: 0001-aarch64-fix-format-specifier.patch --]
[-- Type: application/octet-stream, Size: 1162 bytes --]
From 2c4f49066fc92ed8074e528eb7709cfbc9d4a353 Mon Sep 17 00:00:00 2001
From: Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Date: Fri, 18 Aug 2023 18:34:28 +0200
Subject: [PATCH] aarch64: fix format specifier
gcc/ChangeLog:
* config/aarch64/falkor-tag-collision-avoidance.cc (dump_insn_list):
Fix format specifier.
---
gcc/config/aarch64/falkor-tag-collision-avoidance.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/aarch64/falkor-tag-collision-avoidance.cc b/gcc/config/aarch64/falkor-tag-collision-avoidance.cc
index 39e3f5c2d1b..9b3357f5952 100644
--- a/gcc/config/aarch64/falkor-tag-collision-avoidance.cc
+++ b/gcc/config/aarch64/falkor-tag-collision-avoidance.cc
@@ -740,7 +740,7 @@ dump_insn_list (const rtx &t, const insn_info_list_t &insn_info,
void *unused ATTRIBUTE_UNUSED)
{
gcc_assert (dump_file);
- fprintf (dump_file, "Tag 0x%lx ::\n", INTVAL (t));
+ fprintf (dump_file, "Tag 0x" HOST_WIDE_INT_PRINT_HEX_PURE " ::\n", INTVAL (t));
for (unsigned i = 0; i < insn_info.length (); i++)
dump_insn_slim (dump_file, insn_info[i]->insn);
--
2.39.2 (Apple Git-143)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] aarch64: fix format specifier
2023-08-18 16:37 [PATCH] aarch64: fix format specifier FX Coudert
@ 2023-08-21 16:34 ` Richard Earnshaw (lists)
0 siblings, 0 replies; 2+ messages in thread
From: Richard Earnshaw (lists) @ 2023-08-21 16:34 UTC (permalink / raw)
To: FX Coudert, gcc-patches
On 18/08/2023 17:37, FX Coudert via Gcc-patches wrote:
> A rather trivial fix for fprintf() specifier of a HOST_WIDE_INT value.
> Tested on aarch64-apple-darwin. OK to commit?
>
> FX
>
OK.
R.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-21 16:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-18 16:37 [PATCH] aarch64: fix format specifier FX Coudert
2023-08-21 16:34 ` Richard Earnshaw (lists)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).