[Openmp-commits] [openmp] 39beeb8 - [OpenMP] Fix __kmp_unnamed_critical_addr .type setting (#138815)
via Openmp-commits
openmp-commits at lists.llvm.org
Wed May 7 11:59:46 PDT 2025
Author: Rainer Orth
Date: 2025-05-07T20:59:42+02:00
New Revision: 39beeb8eaa62506013df235497def6cc15ef362a
URL: https://github.com/llvm/llvm-project/commit/39beeb8eaa62506013df235497def6cc15ef362a
DIFF: https://github.com/llvm/llvm-project/commit/39beeb8eaa62506013df235497def6cc15ef362a.diff
LOG: [OpenMP] Fix __kmp_unnamed_critical_addr .type setting (#138815)
PR #138517 broke the Android LLVM builders: ARM doesn't understand the
`@object` form. As it turns out, one can use `%object` instead, which
does assemble on all targets currently supported by `z_Linux_asm.S`.
Tested by rebuilding `libomp.so` on `sparcv9-sun-solaris2.11`.
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 eba7bab371df3..de422f8327a26 100644
--- a/openmp/runtime/src/z_Linux_asm.S
+++ b/openmp/runtime/src/z_Linux_asm.S
@@ -2482,7 +2482,7 @@ __kmp_invoke_microtask:
KMP_PREFIX_UNDERSCORE(__kmp_unnamed_critical_addr):
.4byte .gomp_critical_user_
#ifdef __ELF__
- .type KMP_PREFIX_UNDERSCORE(__kmp_unnamed_critical_addr), at object
+ .type KMP_PREFIX_UNDERSCORE(__kmp_unnamed_critical_addr),%object
.size KMP_PREFIX_UNDERSCORE(__kmp_unnamed_critical_addr),4
#endif
#endif /* KMP_ARCH_ARM || KMP_ARCH_MIPS || KMP_ARCH_AARCH64_32 || KMP_ARCH_SPARC32 */
@@ -2501,7 +2501,7 @@ KMP_PREFIX_UNDERSCORE(__kmp_unnamed_critical_addr):
KMP_PREFIX_UNDERSCORE(__kmp_unnamed_critical_addr):
.8byte .gomp_critical_user_
#ifdef __ELF__
- .type KMP_PREFIX_UNDERSCORE(__kmp_unnamed_critical_addr), at object
+ .type KMP_PREFIX_UNDERSCORE(__kmp_unnamed_critical_addr),%object
.size KMP_PREFIX_UNDERSCORE(__kmp_unnamed_critical_addr),8
#endif
#endif /* KMP_ARCH_PPC64 || KMP_ARCH_AARCH64 || KMP_ARCH_MIPS64 ||
More information about the Openmp-commits
mailing list