summaryrefslogtreecommitdiffstats
path: root/contrib/gcc
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-12-27 05:24:18 +0000
committerian <ian@FreeBSD.org>2014-12-27 05:24:18 +0000
commit47ae0568410e2e98be8543ec7afddbbabda95453 (patch)
tree7dbcdb5599ba6bc717b3149ce7d149d919dbfce6 /contrib/gcc
parentf59ca8096dbaedc101009e30b6e23f62ed150719 (diff)
downloadFreeBSD-src-47ae0568410e2e98be8543ec7afddbbabda95453.zip
FreeBSD-src-47ae0568410e2e98be8543ec7afddbbabda95453.tar.gz
MFC r276045:
Allow -march=armv7a on the gcc command line, for compatibility with clang.
Diffstat (limited to 'contrib/gcc')
-rw-r--r--contrib/gcc/config/arm/arm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/gcc/config/arm/arm.c b/contrib/gcc/config/arm/arm.c
index 4029e58..d8f1f07 100644
--- a/contrib/gcc/config/arm/arm.c
+++ b/contrib/gcc/config/arm/arm.c
@@ -604,6 +604,8 @@ static const struct processors all_architectures[] =
{"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}
OpenPOWER on IntegriCloud