[Openmp-commits] [openmp] ae76652 - Revert "[Libomptarget] Add `leaf` attribute to `vprintf` declaration"

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Tue May 31 07:24:25 PDT 2022


Author: Joseph Huber
Date: 2022-05-31T10:24:04-04:00
New Revision: ae766526777ae5ff34d2dadb99038b596e3c715f

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

LOG: Revert "[Libomptarget] Add `leaf` attribute to `vprintf` declaration"

This is preventing users from calling `printf` on NVPTX code. Revert for
now until there is a fix.

This reverts commit eda4ef3add4d25345e0b29580776f1576040c525.

Added: 
    

Modified: 
    openmp/libomptarget/DeviceRTL/src/Debug.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/DeviceRTL/src/Debug.cpp b/openmp/libomptarget/DeviceRTL/src/Debug.cpp
index c6cf5071b95d1..45e08fa5b16bf 100644
--- a/openmp/libomptarget/DeviceRTL/src/Debug.cpp
+++ b/openmp/libomptarget/DeviceRTL/src/Debug.cpp
@@ -36,7 +36,7 @@ int32_t omp_vprintf(const char *Format, void *Arguments, uint32_t);
 
 #pragma omp begin declare variant match(                                       \
     device = {arch(nvptx, nvptx64)}, implementation = {extension(match_any)})
-int32_t __attribute__((leaf)) vprintf(const char *, void *);
+int32_t vprintf(const char *, void *);
 namespace impl {
 int32_t omp_vprintf(const char *Format, void *Arguments, uint32_t) {
   return vprintf(Format, Arguments);


        


More information about the Openmp-commits mailing list