From 0ae9d258a484ba5ede154f729660ad21bd0ade2e Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 15 Nov 2011 18:34:44 +0000 Subject: lib: Integrate abi.h into int_lib.h, there aren't good enough reasons for this extra complexity. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@144660 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/int_lib.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/int_lib.h') diff --git a/lib/int_lib.h b/lib/int_lib.h index e1fd6b73..27d01fdb 100644 --- a/lib/int_lib.h +++ b/lib/int_lib.h @@ -16,6 +16,17 @@ #ifndef INT_LIB_H #define INT_LIB_H +/* ABI macro definitions */ + +#if __ARM_EABI__ +# define ARM_EABI_FNALIAS(aeabi_name, name) \ + void __aeabi_##aeabi_name() __attribute__((alias("__" #name))); +# define COMPILER_RT_ABI __attribute__((pcs("aapcs"))) +#else +# define ARM_EABI_FNALIAS(aeabi_name, name) +# define COMPILER_RT_ABI +#endif + /* Assumption: signed integral is 2's complement */ /* Assumption: right shift of signed negative is arithmetic shift */ -- cgit v1.2.3