Commit ecc35992 authored by Sandrine Bailleux's avatar Sandrine Bailleux
Browse files

compiler_rt: Import latest changes on int_lib.h



Imported from the LLVM compiler_rt library on master branch as of
30 Oct 2018 (SVN revision: r345645).

Change-Id: I058cfb5894daf1d12e1ef971c0ba36b0aa089be5
Signed-off-by: default avatarSandrine Bailleux <sandrine.bailleux@arm.com>
parent 9c10e348
...@@ -27,27 +27,28 @@ ...@@ -27,27 +27,28 @@
#if defined(__ELF__) #if defined(__ELF__)
#define FNALIAS(alias_name, original_name) \ #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 #else
#define FNALIAS(alias, name) _Pragma("GCC error(\"alias unsupported on this file format\")") #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 #endif
/* ABI macro definitions */ /* ABI macro definitions */
#if __ARM_EABI__ #if __ARM_EABI__
# define ARM_EABI_FNALIAS(aeabi_name, name) \
void __aeabi_##aeabi_name() __attribute__((alias("__" #name)));
# ifdef COMPILER_RT_ARMHF_TARGET # ifdef COMPILER_RT_ARMHF_TARGET
# define COMPILER_RT_ABI # define COMPILER_RT_ABI
# else # else
# define COMPILER_RT_ABI __attribute__((pcs("aapcs"))) # define COMPILER_RT_ABI __attribute__((__pcs__("aapcs")))
# endif # endif
#else #else
# define ARM_EABI_FNALIAS(aeabi_name, name)
# define COMPILER_RT_ABI # define COMPILER_RT_ABI
#endif #endif
#ifdef _MSC_VER #define AEABI_RTABI __attribute__((__pcs__("aapcs")))
#if defined(_MSC_VER) && !defined(__clang__)
#define ALWAYS_INLINE __forceinline #define ALWAYS_INLINE __forceinline
#define NOINLINE __declspec(noinline) #define NOINLINE __declspec(noinline)
#define NORETURN __declspec(noreturn) #define NORETURN __declspec(noreturn)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment