[Openmp-commits] [openmp] [OpenMP][libomp] Add OpenBSD, NetBSD and DragonFly stdarg handling (PR #126182)

Brad Smith via Openmp-commits openmp-commits at lists.llvm.org
Thu Feb 6 21:52:26 PST 2025


https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/126182

Fixes build on OpenBSD/aarch64.

>From 093ee97ff764a074e219462b6c363dfa433a64f7 Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Sat, 1 Feb 2025 04:19:09 -0500
Subject: [PATCH] [OpenMP][libomp] Add OpenBSD, NetBSD and DragonFly stdarg
 handling

Fixes build on OpenBSD/aarch64.
---
 openmp/runtime/src/kmp_os.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/openmp/runtime/src/kmp_os.h b/openmp/runtime/src/kmp_os.h
index 2252f5e7e97a732..29a281f09685574 100644
--- a/openmp/runtime/src/kmp_os.h
+++ b/openmp/runtime/src/kmp_os.h
@@ -219,7 +219,8 @@ 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_NETBSD || KMP_OS_OPENBSD || KMP_OS_DRAGONFLY ||  \
+     KMP_OS_LINUX || KMP_OS_WASI)
 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