[Openmp-commits] [openmp] 0a8eb54 - [OpenMP][OMPT] Fixes current_address printing on RV64GC (#223681)

via Openmp-commits openmp-commits at lists.llvm.org
Wed Sep 16 04:02:08 PDT 2026


Author: Tulio Magno Quites Machado Filho
Date: 2026-09-16T08:02:02-03:00
New Revision: 0a8eb54dd990f8d9649f01aee1d2c0cbff3b68ac

URL: https://github.com/llvm/llvm-project/commit/0a8eb54dd990f8d9649f01aee1d2c0cbff3b68ac
DIFF: https://github.com/llvm/llvm-project/commit/0a8eb54dd990f8d9649f01aee1d2c0cbff3b68ac.diff

LOG: [OpenMP][OMPT] Fixes current_address printing on RV64GC (#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)

Added: 
    

Modified: 
    openmp/runtime/test/ompt/callback.h

Removed: 
    


################################################################################
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