[compiler-rt] 5f3c492 - [compiler-rt] Fix AArch64 out-of-line atomics visibility on mach-o
Erik Pilkington via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 1 08:29:52 PST 2021
Author: Erik Pilkington
Date: 2021-02-01T11:29:20-05:00
New Revision: 5f3c4923e4e4d5f40a64e08e407067ff551f2901
URL: https://github.com/llvm/llvm-project/commit/5f3c4923e4e4d5f40a64e08e407067ff551f2901
DIFF: https://github.com/llvm/llvm-project/commit/5f3c4923e4e4d5f40a64e08e407067ff551f2901.diff
LOG: [compiler-rt] Fix AArch64 out-of-line atomics visibility on mach-o
This fixes an apparent oversight in D91156, where the symbol was defined
without the leading underscore, then the visibility was later declared with it.
rdar://73364185
Differential revision: https://reviews.llvm.org/D95639
Added:
Modified:
compiler-rt/lib/builtins/assembly.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/assembly.h b/compiler-rt/lib/builtins/assembly.h
index f6ce6a9fccff..80287f2c8bcf 100644
--- a/compiler-rt/lib/builtins/assembly.h
+++ b/compiler-rt/lib/builtins/assembly.h
@@ -204,8 +204,11 @@
#ifdef VISIBILITY_HIDDEN
#define DECLARE_SYMBOL_VISIBILITY(name) \
HIDDEN(SYMBOL_NAME(name)) SEPARATOR
+#define DECLARE_SYMBOL_VISIBILITY_UNMANGLED(name) \
+ HIDDEN(name) SEPARATOR
#else
#define DECLARE_SYMBOL_VISIBILITY(name)
+#define DECLARE_SYMBOL_VISIBILITY_UNMANGLED(name)
#endif
#define DEFINE_COMPILERRT_FUNCTION(name) \
@@ -248,7 +251,7 @@
FUNC_ALIGN \
.globl name SEPARATOR \
SYMBOL_IS_FUNC(name) SEPARATOR \
- DECLARE_SYMBOL_VISIBILITY(name) SEPARATOR \
+ DECLARE_SYMBOL_VISIBILITY_UNMANGLED(name) SEPARATOR \
CFI_START SEPARATOR \
DECLARE_FUNC_ENCODING \
name: SEPARATOR BTI_C
More information about the llvm-commits
mailing list