svn commit: r276291 - stable/10/contrib/gcc/config/arm

Ian Lepore ian at FreeBSD.org
Sat Dec 27 05:24:19 UTC 2014


Author: ian
Date: Sat Dec 27 05:24:18 2014
New Revision: 276291
URL: https://svnweb.freebsd.org/changeset/base/276291

Log:
  MFC r276045:
  
   Allow -march=armv7a on the gcc command line, for compatibility with clang.

Modified:
  stable/10/contrib/gcc/config/arm/arm.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/gcc/config/arm/arm.c
==============================================================================
--- stable/10/contrib/gcc/config/arm/arm.c	Sat Dec 27 05:11:34 2014	(r276290)
+++ stable/10/contrib/gcc/config/arm/arm.c	Sat Dec 27 05:24:18 2014	(r276291)
@@ -604,6 +604,8 @@ static const struct processors all_archi
   {"armv6k",  mpcore,	  "6K",  FL_CO_PROC |             FL_FOR_ARCH6K, NULL},
   {"armv6z",  arm1176jzs, "6Z",  FL_CO_PROC |             FL_FOR_ARCH6Z, NULL},
   {"armv6zk", arm1176jzs, "6ZK", FL_CO_PROC |             FL_FOR_ARCH6ZK, NULL},
+  /* Clang compatibility... define __ARM_ARCH_7A__, but codegen is still 6ZK. */
+  {"armv7a",  arm1176jzs, "7A",  FL_CO_PROC |             FL_FOR_ARCH6ZK, NULL},
   {"ep9312",  ep9312,     "4T",  FL_LDSCHED | FL_CIRRUS | FL_FOR_ARCH4, NULL},
   {"iwmmxt",  iwmmxt,     "5TE", FL_LDSCHED | FL_STRONG | FL_FOR_ARCH5TE | FL_XSCALE | FL_IWMMXT , NULL},
   {NULL, arm_none, NULL, 0 , NULL}


More information about the svn-src-stable mailing list