[compiler-rt] 8aef01e - [AIX][compiler-rt] Pick the right form of COMPILER_RT_ALIAS for AIX
David Tenty via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 16 11:10:47 PDT 2020
Author: David Tenty
Date: 2020-06-16T14:10:40-04:00
New Revision: 8aef01eed41b66039926ea8e72bf927cfe240762
URL: https://github.com/llvm/llvm-project/commit/8aef01eed41b66039926ea8e72bf927cfe240762
DIFF: https://github.com/llvm/llvm-project/commit/8aef01eed41b66039926ea8e72bf927cfe240762.diff
LOG: [AIX][compiler-rt] Pick the right form of COMPILER_RT_ALIAS for AIX
Summary: we use the alias attribute, similar to what is done for ELF.
Reviewers: ZarkoCA, jasonliu, hubert.reinterpretcast, sfertile
Reviewed By: jasonliu
Subscribers: dberris, aheejin, mstorsjo, #sanitizers
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D81120
Added:
Modified:
compiler-rt/lib/builtins/int_lib.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/int_lib.h b/compiler-rt/lib/builtins/int_lib.h
index 7f5eb79903b2..7e1dabe29d01 100644
--- a/compiler-rt/lib/builtins/int_lib.h
+++ b/compiler-rt/lib/builtins/int_lib.h
@@ -48,7 +48,8 @@
#define XSTR(a) STR(a)
#define SYMBOL_NAME(name) XSTR(__USER_LABEL_PREFIX__) #name
-#if defined(__ELF__) || defined(__MINGW32__) || defined(__wasm__)
+#if defined(__ELF__) || defined(__MINGW32__) || defined(__wasm__) || \
+ defined(_AIX)
#define COMPILER_RT_ALIAS(name, aliasname) \
COMPILER_RT_ABI __typeof(name) aliasname __attribute__((__alias__(#name)));
#elif defined(__APPLE__)
More information about the llvm-commits
mailing list