diff options
Diffstat (limited to 'contrib/compiler-rt/lib/builtins/int_lib.h')
-rw-r--r-- | contrib/compiler-rt/lib/builtins/int_lib.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/contrib/compiler-rt/lib/builtins/int_lib.h b/contrib/compiler-rt/lib/builtins/int_lib.h index 09f27f8eb68a..f777c55194f0 100644 --- a/contrib/compiler-rt/lib/builtins/int_lib.h +++ b/contrib/compiler-rt/lib/builtins/int_lib.h @@ -32,15 +32,13 @@ #if __ARM_EABI__ # define ARM_EABI_FNALIAS(aeabi_name, name) \ void __aeabi_##aeabi_name() __attribute__((alias("__" #name))); - -# if !defined(__clang__) && defined(__GNUC__) && \ - (__GNUC__ < 4 || __GNUC__ == 4 && __GNUC_MINOR__ < 5) +# if defined(COMPILER_RT_ARMHF_TARGET) || (!defined(__clang__) && \ + defined(__GNUC__) && (__GNUC__ < 4 || __GNUC__ == 4 && __GNUC_MINOR__ < 5)) /* The pcs attribute was introduced in GCC 4.5.0 */ -# define COMPILER_RT_ABI +# define COMPILER_RT_ABI # else -# define COMPILER_RT_ABI __attribute__((pcs("aapcs"))) +# define COMPILER_RT_ABI __attribute__((pcs("aapcs"))) # endif - #else # define ARM_EABI_FNALIAS(aeabi_name, name) # define COMPILER_RT_ABI |