diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-05-16 16:41:37 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-05-16 16:41:37 +0000 |
commit | 99e2e66daf8d334858cec4f6e8e7a39d6a535a55 (patch) | |
tree | b7f896c11740479b684921972559a2c12b3750b8 /lib/builtins/lshrdi3.c | |
parent | 5c1b8654b63c99930f442de2e79b179e6150d725 (diff) |
builtins: expand out the AEABI function stubs
These actually may change calling conventions. We cannot simply provide
function aliases as the aliased function may have a different calling
convention. Provide a forwarding function instead to permit the
compiler to synthesize the calling convention adjustment thunk.
Remove the `ARM_EABI_FNALIAS` macro as that is not safe to use.
Resolves PR33030!
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@303188 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/lshrdi3.c')
-rw-r--r-- | lib/builtins/lshrdi3.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/builtins/lshrdi3.c b/lib/builtins/lshrdi3.c index 6b1ea923b..becbbef4e 100644 --- a/lib/builtins/lshrdi3.c +++ b/lib/builtins/lshrdi3.c @@ -18,8 +18,6 @@ /* Precondition: 0 <= b < bits_in_dword */ -ARM_EABI_FNALIAS(llsr, lshrdi3) - COMPILER_RT_ABI di_int __lshrdi3(di_int a, si_int b) { @@ -41,3 +39,10 @@ __lshrdi3(di_int a, si_int b) } return result.all; } + +#if defined(__ARM_EABI__) +AEABI_RTABI di_int __aeabi_llsr(di_int a, si_int b) { + return __lshrdi3(a, b); +} +#endif + |