summaryrefslogtreecommitdiff
path: root/gcc/config.host
diff options
context:
space:
mode:
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>2015-04-24 14:52:47 +0000
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>2015-04-24 14:52:47 +0000
commit7e1bcce3711f5646ffc98652c20e988d55689041 (patch)
treeb4ffc12d1036577eda1baec7f5d6bbe152b867f1 /gcc/config.host
parentf8815f7a483ba1fa81d5d07b7a519cd3931fa701 (diff)
downloadgcc-7e1bcce3711f5646ffc98652c20e988d55689041.tar.gz
[AArch64] Implement -m{cpu,tune,arch}=native using only /proc/cpuinfo
* config.host (case ${host}): Add aarch64*-*-linux case. * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER fields to all the cores. * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS): Add MCPU_MTUNE_NATIVE_SPECS. * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING field to all extensions. * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE. * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE. Adjust definition of AARCH64_OPT_EXTENSION. * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE. (MCPU_MTUNE_NATIVE_SPECS): Define. * config/aarch64/driver-aarch64.c: New file. * config/aarch64/x-arch64: New file. * doc/invoke.texi (AArch64 Options): Document native value for -mcpu, -mtune and -march. From-SVN: r222415
Diffstat (limited to 'gcc/config.host')
-rw-r--r--gcc/config.host8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config.host b/gcc/config.host
index b0f5940c263..a8896d1c382 100644
--- a/gcc/config.host
+++ b/gcc/config.host
@@ -99,6 +99,14 @@ case ${host} in
esac
case ${host} in
+ aarch64*-*-linux*)
+ case ${target} in
+ aarch64*-*-*)
+ host_extra_gcc_objs="driver-aarch64.o"
+ host_xmake_file="${host_xmake_file} aarch64/x-aarch64"
+ ;;
+ esac
+ ;;
arm*-*-freebsd* | arm*-*-linux*)
case ${target} in
arm*-*-*)