aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2017-06-16 21:03:46 +0000
committerRichard Earnshaw <rearnsha@gcc.gnu.org>2017-06-16 21:03:46 +0000
commitbf35d17a30c0a476b6abc82e0b029029c5599104 (patch)
treec0f1dda648777a99dec0f285e53000a81810a6fc /gcc/config.gcc
parent357e1023c9b10e98d1aa4d59fdb876078de47608 (diff)
downloadgcc-bf35d17a30c0a476b6abc82e0b029029c5599104.zip
gcc-bf35d17a30c0a476b6abc82e0b029029c5599104.tar.gz
gcc-bf35d17a30c0a476b6abc82e0b029029c5599104.tar.bz2
[arm] Allow new extended syntax CPU and architecture
This patch extends support for the new extended-style architecture strings to configure and the target default options. We validate any options passed by the user to configure against the permitted extensions for that CPU or architecture. * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real cpu name. (arm*-*-*): Set target_cpu_default2 to a quoted string. * config/arm/parsecpu.awk (check_cpu): Validate any extension options. (check_arch): Likewise. * config/arm/arm.c (arm_configure_build_target): Handle TARGET_CPU_DEFAULT being a string constant. Scan any feature options in the default. From-SVN: r249290
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 8b00e66..620a5b2 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1161,7 +1161,7 @@ arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems* | arm*-*-fuchsia*)
arm*-*-fuchsia*)
tm_file="${tm_file} fuchsia.h arm/fuchsia-elf.h glibc-stdint.h"
tmake_file="${tmake_file} arm/t-bpabi"
- target_cpu_cname="genericv7a"
+ target_cpu_cname="generic-armv7-a"
;;
arm*-*-rtems*)
tm_file="${tm_file} rtems.h arm/rtems.h newlib-stdint.h"
@@ -4496,9 +4496,9 @@ case ${target} in
arm*-*-*)
if test x$target_cpu_cname = x
then
- target_cpu_default2=TARGET_CPU_arm6
+ target_cpu_default2="\\\"arm6\\\""
else
- target_cpu_default2=TARGET_CPU_$target_cpu_cname
+ target_cpu_default2="\\\"$target_cpu_cname\\\""
fi
;;