mirror of
https://github.com/opnsense/src.git
synced 2026-05-19 08:25:22 -04:00
Don't use the pcs attribute on compilers that don't support it. We can
revert this when we stop supporting old versions of gcc.
This commit is contained in:
parent
3eace1b98b
commit
e2a7ad82f2
1 changed files with 9 additions and 1 deletions
|
|
@ -25,7 +25,15 @@
|
|||
#if __ARM_EABI__
|
||||
# define ARM_EABI_FNALIAS(aeabi_name, name) \
|
||||
void __aeabi_##aeabi_name() __attribute__((alias("__" #name)));
|
||||
# define COMPILER_RT_ABI __attribute__((pcs("aapcs")))
|
||||
|
||||
# if !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
|
||||
# else
|
||||
# define COMPILER_RT_ABI __attribute__((pcs("aapcs")))
|
||||
# endif
|
||||
|
||||
#else
|
||||
# define ARM_EABI_FNALIAS(aeabi_name, name)
|
||||
# define COMPILER_RT_ABI
|
||||
|
|
|
|||
Loading…
Reference in a new issue