[arm] Eliminate SUBTARGET_CPU_DEFAULT
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 3 Nov 2016 18:08:19 +0000 (18:08 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Thu, 3 Nov 2016 18:08:19 +0000 (18:08 +0000)
commit1bac673faf4a0a0bd0a5606dad9d98b33d568510
tree16d5962ff38b8730e9c99bfd7c2a76f15c6ec776
parentac5b3efff29c2b0bf056adbb1e075927692653da
[arm] Eliminate SUBTARGET_CPU_DEFAULT

* config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
(arm*-freebsd*): Likewise.
(arm*-*-netbsdelf*): Likewise.
(arm*-*-linux*): Likewise.
(arm*-*-uclinux*eabi*): Likewise.
(arm*-*-phoenix*): Likewise.
(arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
(arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
specified.  Default to arm6 if target_cpu_cname is not set.
* arm/arm.c (arm_option_override): Simplify logic.  Assert that the
default cpu has been correctly configured.
* arm/arm.h (TARGET_CPU_DEFAULT): Delete.
(target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
* arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
* arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
* arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
* arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
* arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.

From-SVN: r241827
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/config/arm/arm.h
gcc/config/arm/freebsd.h
gcc/config/arm/linux-eabi.h
gcc/config/arm/linux-elf.h
gcc/config/arm/symbian.h
gcc/config/arm/unknown-elf.h