[openmp] Fix for 32-bit PowerPC (#126412)

This commit is contained in:
Brad Smith
2025-02-10 04:04:26 -05:00
committed by GitHub
parent 91682da438
commit 52a02b6d1e
2 changed files with 5 additions and 1 deletions

View File

@@ -116,6 +116,7 @@
#define KMP_ARCH_PPC64_ELFv2 0
#define KMP_ARCH_PPC64_XCOFF 0
#define KMP_ARCH_PPC_XCOFF 0
#define KMP_ARCH_PPC 0
#define KMP_ARCH_MIPS 0
#define KMP_ARCH_MIPS64 0
#define KMP_ARCH_RISCV64 0
@@ -164,6 +165,9 @@
#define KMP_ARCH_PPC_XCOFF 1
#undef KMP_ARCH_PPC
#define KMP_ARCH_PPC 1
#elif defined(__powerpc__) && !defined(__LP64__)
#undef KMP_ARCH_PPC
#define KMP_ARCH_PPC 1
#elif defined __ARM64_ARCH_8_32__
#undef KMP_ARCH_AARCH64_32
#define KMP_ARCH_AARCH64_32 1

View File

@@ -2470,7 +2470,7 @@ __kmp_invoke_microtask:
#endif /* KMP_ARCH_S390X */
#if KMP_ARCH_ARM || KMP_ARCH_MIPS || KMP_ARCH_AARCH64_32
#if KMP_ARCH_ARM || KMP_ARCH_MIPS || KMP_ARCH_PPC || KMP_ARCH_AARCH64_32
#ifndef KMP_PREFIX_UNDERSCORE
# define KMP_PREFIX_UNDERSCORE(x) x
#endif