From: AndreyChurbanov Date: Wed, 25 Nov 2020 17:40:23 +0000 (+0300) Subject: [OpenMP] libomp: fix non-X86, non-AARCH64 builds X-Git-Tag: llvmorg-13-init~5126 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e3e332d273b80b5167ac35f8dcfa7178e45c5e9;p=platform%2Fupstream%2Fllvm.git [OpenMP] libomp: fix non-X86, non-AARCH64 builds 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 --- diff --git a/openmp/runtime/src/z_Linux_asm.S b/openmp/runtime/src/z_Linux_asm.S index 272999d..b4a45c1 100644 --- a/openmp/runtime/src/z_Linux_asm.S +++ b/openmp/runtime/src/z_Linux_asm.S @@ -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