[Openmp-commits] [openmp] [OpenMP][AIX]Define struct kmp_base_tas_lock with the order of two members swapped for big-endian (PR #79188)

Brad Smith via Openmp-commits openmp-commits at lists.llvm.org
Thu Jan 25 01:02:12 PST 2024


================
@@ -120,8 +120,15 @@ extern void __kmp_validate_locks(void);
 
 struct kmp_base_tas_lock {
   // KMP_LOCK_FREE(tas) => unlocked; locked: (gtid+1) of owning thread
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ && KMP_ARCH_PPC64
----------------
brad0 wrote:

> I thought to use `KMP_ARCH_PPC64` to limit the scope. This issue may also affect s390x which I believe is also big-endian.

Ya, I was also thinking about other big-endian processors that might be affected like mips64 or if sparc support is eventually added sparc64.

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


More information about the Openmp-commits mailing list