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/int_lib.h | |
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/int_lib.h')
-rw-r--r-- | lib/builtins/int_lib.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/builtins/int_lib.h b/lib/builtins/int_lib.h index 63d911a20..9a8092d50 100644 --- a/lib/builtins/int_lib.h +++ b/lib/builtins/int_lib.h @@ -30,18 +30,17 @@ /* ABI macro definitions */ #if __ARM_EABI__ -# define ARM_EABI_FNALIAS(aeabi_name, name) \ - void __aeabi_##aeabi_name() __attribute__((alias("__" #name))); # ifdef COMPILER_RT_ARMHF_TARGET # define COMPILER_RT_ABI # else # define COMPILER_RT_ABI __attribute__((__pcs__("aapcs"))) # endif #else -# define ARM_EABI_FNALIAS(aeabi_name, name) # define COMPILER_RT_ABI #endif +#define AEABI_RTABI __attribute__((__pcs__("aapcs"))) + #ifdef _MSC_VER #define ALWAYS_INLINE __forceinline #define NOINLINE __declspec(noinline) |