[AArch64] Implement -m{cpu,tune,arch}=native using only /proc/cpuinfo
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 24 Apr 2015 14:52:47 +0000 (14:52 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Fri, 24 Apr 2015 14:52:47 +0000 (14:52 +0000)
commit7e1bcce3711f5646ffc98652c20e988d55689041
treeb4ffc12d1036577eda1baec7f5d6bbe152b867f1
parentf8815f7a483ba1fa81d5d07b7a519cd3931fa701
[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
gcc/ChangeLog
gcc/config.host
gcc/config/aarch64/aarch64-cores.def
gcc/config/aarch64/aarch64-elf.h
gcc/config/aarch64/aarch64-option-extensions.def
gcc/config/aarch64/aarch64-opts.h
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/aarch64.h
gcc/config/aarch64/driver-aarch64.c [new file with mode: 0644]
gcc/config/aarch64/x-aarch64 [new file with mode: 0644]
gcc/doc/invoke.texi