[llvm-branch-commits] [openmp] 9e3e332 - [OpenMP] libomp: fix non-X86, non-AARCH64 builds

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Nov 25 09:45:29 PST 2020


Author: AndreyChurbanov
Date: 2020-11-25T20:40:23+03:00
New Revision: 9e3e332d273b80b5167ac35f8dcfa7178e45c5e9

URL: https://github.com/llvm/llvm-project/commit/9e3e332d273b80b5167ac35f8dcfa7178e45c5e9
DIFF: https://github.com/llvm/llvm-project/commit/9e3e332d273b80b5167ac35f8dcfa7178e45c5e9.diff

LOG: [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

Added: 
    

Modified: 
    openmp/runtime/src/z_Linux_asm.S

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/src/z_Linux_asm.S b/openmp/runtime/src/z_Linux_asm.S
index 272999ddb9af0..b4a45c1ac6f5b 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


        


More information about the llvm-branch-commits mailing list