svn commit: r231059 - projects/arm_eabi/contrib/compiler-rt/lib

Andrew Turner andrew at FreeBSD.org
Mon Feb 6 04:23:38 UTC 2012


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


More information about the svn-src-projects mailing list