[OpenMP] libomp: fix non-X86, non-AARCH64 builds
authorAndreyChurbanov <andrey.churbanov@intel.com>
Wed, 25 Nov 2020 17:40:23 +0000 (20:40 +0300)
committerAndreyChurbanov <andrey.churbanov@intel.com>
Wed, 25 Nov 2020 17:40:23 +0000 (20:40 +0300)
Commit https://reviews.llvm.org/rG7b5254223acbf2ef9cd278070c5a84ab278d7e5f
broke the build for some architectures, because macro KMP_PREFIX_UNDERSCORE
was defined only for x86, x86_64 and aarch64. This patch defines it for other
architectures (as a no-op).

Differential Revision: https://reviews.llvm.org/D92027

openmp/runtime/src/z_Linux_asm.S

index 272999d..b4a45c1 100644 (file)
@@ -1737,6 +1737,9 @@ __kmp_unnamed_critical_addr:
 #endif /* KMP_ARCH_ARM */
 
 #if KMP_ARCH_PPC64 || KMP_ARCH_AARCH64 || KMP_ARCH_MIPS64 || KMP_ARCH_RISCV64
+#ifndef KMP_PREFIX_UNDERSCORE
+# define KMP_PREFIX_UNDERSCORE(x) x
+#endif
     .data
     .comm .gomp_critical_user_,32,8
     .data