mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-26 14:55:16 +00:00
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: Sandrine Bailleux <sandrine.bailleux@arm.com>
This commit is contained in:
parent
9c10e3485b
commit
ecc35992f3
1 changed files with 7 additions and 6 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue