[Openmp-commits] [openmp] In openmp, recognize the NetBSD/powerpc ports. (PR #124151)

Brad Smith via Openmp-commits openmp-commits at lists.llvm.org
Sun Jan 26 21:36:53 PST 2025


================
@@ -164,6 +164,9 @@
 #define KMP_ARCH_PPC_XCOFF 1
 #undef KMP_ARCH_PPC
 #define KMP_ARCH_PPC 1
+#elif defined(__powerpc__) && defined(KMP_OS_NETBSD)
----------------
brad0 wrote:

Instead of checking for KMP_OS_NETBSD since this really should not be NetBSD specific it would be better to check !__LP64__ since __powerpc__ is defined even on powerpc64.

Also it would be good to have #define KMP_ARCH_PPC 0 further up around line 110.

https://github.com/llvm/llvm-project/pull/124151


More information about the Openmp-commits mailing list