[Openmp-commits] [openmp] 7b52542 - [OpenMP] fix asm code for for arm64 (AARCH64) for Darwin/macOS
via Openmp-commits
openmp-commits at lists.llvm.org
Tue Nov 24 02:08:48 PST 2020
Author: AndreyChurbanov
Date: 2020-11-24T13:08:24+03:00
New Revision: 7b5254223acbf2ef9cd278070c5a84ab278d7e5f
URL: https://github.com/llvm/llvm-project/commit/7b5254223acbf2ef9cd278070c5a84ab278d7e5f
DIFF: https://github.com/llvm/llvm-project/commit/7b5254223acbf2ef9cd278070c5a84ab278d7e5f.diff
LOG: [OpenMP] fix asm code for for arm64 (AARCH64) for Darwin/macOS
Adjusted external reference for Darwin/AARCH64 link compatibility.
Made size directive conditional only if __ELF__ defined.
Patch by Michael_Pique <mpique at icloud.com>
Differential Revision: https://reviews.llvm.org/D88252
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 16059a3762bf..272999ddb9af 100644
--- a/openmp/runtime/src/z_Linux_asm.S
+++ b/openmp/runtime/src/z_Linux_asm.S
@@ -1741,10 +1741,12 @@ __kmp_unnamed_critical_addr:
.comm .gomp_critical_user_,32,8
.data
.align 8
- .global __kmp_unnamed_critical_addr
-__kmp_unnamed_critical_addr:
+ .global KMP_PREFIX_UNDERSCORE(__kmp_unnamed_critical_addr)
+KMP_PREFIX_UNDERSCORE(__kmp_unnamed_critical_addr):
.8byte .gomp_critical_user_
- .size __kmp_unnamed_critical_addr,8
+#ifdef __ELF__
+ .size KMP_PREFIX_UNDERSCORE(__kmp_unnamed_critical_addr),8
+#endif
#endif /* KMP_ARCH_PPC64 || KMP_ARCH_AARCH64 || KMP_ARCH_MIPS64 ||
KMP_ARCH_RISCV64 */
More information about the Openmp-commits
mailing list