diff options
| author | Eli Friedman <efriedma@codeaurora.org> | 2017-10-03 21:25:07 +0000 | 
|---|---|---|
| committer | Eli Friedman <efriedma@codeaurora.org> | 2017-10-03 21:25:07 +0000 | 
| commit | 0d586d06a756b126a7eb43a21ecc12bd243d7cd8 (patch) | |
| tree | c04b466a1c8f98454a68179185b136fe21de0406 /compiler-rt/lib/builtins/int_lib.h | |
| parent | 119753ad14dc6de81a8a77dba2694aab87f5aee2 (diff) | |
| download | bcm5719-llvm-0d586d06a756b126a7eb43a21ecc12bd243d7cd8.tar.gz bcm5719-llvm-0d586d06a756b126a7eb43a21ecc12bd243d7cd8.zip | |
[compiler-rt] Add back ARM EABI aliases where legal.
r303188 removed all the uses of aliases for EABI functions from
compiler-rt, because some of them had mismatched calling conventions.
Obviously, we can't use aliases for functions which don't have the same
calling convention, but that's only an issue for floating-point
functions with the hardfloat ABI.  In other cases, the stubs increase
size and reduce performance for no benefit.
This patch adds back the aliases, with appropriate checks to make sure
they're only used in cases where the calling convention matches.
llvm-svn: 314851
Diffstat (limited to 'compiler-rt/lib/builtins/int_lib.h')
| -rw-r--r-- | compiler-rt/lib/builtins/int_lib.h | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/compiler-rt/lib/builtins/int_lib.h b/compiler-rt/lib/builtins/int_lib.h index 9a8092d50d8..9d09e2dc915 100644 --- a/compiler-rt/lib/builtins/int_lib.h +++ b/compiler-rt/lib/builtins/int_lib.h @@ -22,9 +22,11 @@  #if defined(__ELF__)  #define FNALIAS(alias_name, original_name) \ -  void alias_name() __attribute__((alias(#original_name))) +  void alias_name() __attribute__((__alias__(#original_name))) +#define COMPILER_RT_ALIAS(aliasee) __attribute__((__alias__(#aliasee)))  #else  #define FNALIAS(alias, name) _Pragma("GCC error(\"alias unsupported on this file format\")") +#define COMPILER_RT_ALIAS(aliasee) _Pragma("GCC error(\"alias unsupported on this file format\")")  #endif  /* ABI macro definitions */ | 

