Revert "[Libomptarget] Add `leaf` attribute to `vprintf` declaration"
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 31 May 2022 14:14:51 +0000 (10:14 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 31 May 2022 14:24:04 +0000 (10:24 -0400)
This is preventing users from calling `printf` on NVPTX code. Revert for
now until there is a fix.

This reverts commit eda4ef3add4d25345e0b29580776f1576040c525.

openmp/libomptarget/DeviceRTL/src/Debug.cpp

index c6cf507..45e08fa 100644 (file)
@@ -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);