Date: Mon, 6 Feb 2012 04:23:38 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r231059 - projects/arm_eabi/contrib/compiler-rt/lib Message-ID: <201202060423.q164Ncjx016009@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andrew Date: Mon Feb 6 04:23:37 2012 New Revision: 231059 URL: http://svn.freebsd.org/changeset/base/231059 Log: The pcs attribute will not work with the system GCC as it was introduced in GCC 4.5.0. Don't attempt to use it on previous versions of GCC. Modified: projects/arm_eabi/contrib/compiler-rt/lib/abi.h Modified: projects/arm_eabi/contrib/compiler-rt/lib/abi.h ============================================================================== --- projects/arm_eabi/contrib/compiler-rt/lib/abi.h Mon Feb 6 00:26:29 2012 (r231058) +++ projects/arm_eabi/contrib/compiler-rt/lib/abi.h Mon Feb 6 04:23:37 2012 (r231059) @@ -16,7 +16,14 @@ #if __ARM_EABI__ # define ARM_EABI_FNALIAS(aeabi_name, name) \ void __aeabi_##aeabi_name() __attribute__((alias("__" #name))); + +#if 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202060423.q164Ncjx016009>