[Openmp-commits] [openmp] [OpenMP][OMPT] Fixes current_address printing on RV64GC (PR #223681)
Tulio Magno Quites Machado Filho via Openmp-commits
openmp-commits at lists.llvm.org
Tue Sep 15 05:47:43 PDT 2026
https://github.com/tuliom created https://github.com/llvm/llvm-project/pull/223681
A previous commit increased the number of arguments passed to printf in print_possible_return_addresses(addr) but forgot to change the format in order to include the new argument.
Fixes: 4e19543b1a85 (FIX some OMPT tests that fail on RISC-V (#156914), 2026-07-24)
>From 0293f174ee5f086fc84a4a1d456a437a577c7bf9 Mon Sep 17 00:00:00 2001
From: Tulio Magno Quites Machado Filho <tuliom at redhat.com>
Date: Tue, 15 Sep 2026 09:37:49 -0300
Subject: [PATCH] [OpenMP][OMPT] Fixes current_address printing on RV64GC
A previous commit increased the number of arguments passed to printf
in print_possible_return_addresses(addr) but forgot to change the format
in order to include the new argument.
Fixes: 4e19543b1a85 (FIX some OMPT tests that fail on RISC-V (#156914), 2026-07-24)
---
openmp/runtime/test/ompt/callback.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/openmp/runtime/test/ompt/callback.h b/openmp/runtime/test/ompt/callback.h
index 689e5455ea604..ab6c56291da23 100644
--- a/openmp/runtime/test/ompt/callback.h
+++ b/openmp/runtime/test/ompt/callback.h
@@ -295,7 +295,7 @@ static void print_ids(int level) {
// appear (adding 4 more bytes) when the C.NOP is referenced elsewhere (ie.
// another branch).
#define print_possible_return_addresses(addr) \
- printf("%" PRIu64 ": current_address=%p or %p\n", \
+ printf("%" PRIu64 ": current_address=%p or %p or %p\n", \
ompt_get_thread_data()->value, ((char *)addr) - 4, \
((char *)addr) - 6, ((char *)addr) - 10)
#else
More information about the Openmp-commits
mailing list