[Openmp-commits] [openmp] In openmp, handle NetBSD the same as Linux and FreeBSD wrt. stdarg (PR #124147)

via Openmp-commits openmp-commits at lists.llvm.org
Thu Jan 23 09:07:43 PST 2025


https://github.com/he32 created https://github.com/llvm/llvm-project/pull/124147

None

>From f0ab6169b63a79ff0b8adade36e1bd915601f46c Mon Sep 17 00:00:00 2001
From: Havard Eidnes <he at NetBSD.org>
Date: Thu, 23 Jan 2025 17:05:49 +0000
Subject: [PATCH] In openmp, handle NetBSD the same as Linux and FreeBSD wrt.
 stdarg handling.

---
 openmp/runtime/src/kmp_os.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openmp/runtime/src/kmp_os.h b/openmp/runtime/src/kmp_os.h
index 2252f5e7e97a73..04b77c6e11912c 100644
--- a/openmp/runtime/src/kmp_os.h
+++ b/openmp/runtime/src/kmp_os.h
@@ -219,7 +219,7 @@ typedef kmp_uint32 kmp_uint;
 
 // stdarg handling
 #if (KMP_ARCH_ARM || KMP_ARCH_X86_64 || KMP_ARCH_AARCH64 || KMP_ARCH_WASM) &&  \
-    (KMP_OS_FREEBSD || KMP_OS_LINUX || KMP_OS_WASI)
+    (KMP_OS_FREEBSD || KMP_OS_LINUX || KMP_OS_WASI || KMP_OS_NETBSD)
 typedef va_list *kmp_va_list;
 #define kmp_va_deref(ap) (*(ap))
 #define kmp_va_addr_of(ap) (&(ap))



More information about the Openmp-commits mailing list