From: Richard Earnshaw Date: Tue, 23 Oct 2018 10:19:15 +0000 (+0000) Subject: [arm] Update default CPUs during configure X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7a43314023a15cbcd3e5bf8f3ccbc67bce8ef119;p=gcc.git [arm] Update default CPUs during configure There are a couple of places in config.gcc where the default CPU is still arm6, but that was removed as a supported CPU earlier this year. This patch fixes those entries. The default CPU for configurations that do not explicitly set a default is now arm7tdmi (so assumes thumb is available). Given that StrongArm is on the deprecated list, this is a better default than we had previously. For NetBSD the default is StrongArm; this is the only remaining port that uses the old ABI and really still carries support for non-thumb based targets. PR target/86383 * config.gcc (arm*-*-netbsdelf*): Default to StrongARM if no CPU specified to configure. (arm*-*-*): Use ARM7TDMI as the target CPU if no default provided. From-SVN: r265420 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f382b209b78..3314b50f8a4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2018-10-23 Richard Earnshaw + + PR target/86383 + * config.gcc (arm*-*-netbsdelf*): Default to StrongARM if no CPU + specified to configure. + (arm*-*-*): Use ARM7TDMI as the target CPU if no default provided. + 2018-10-23 Richard Biener PR tree-optimization/87700 diff --git a/gcc/config.gcc b/gcc/config.gcc index 720e6a7373d..a2e89e23706 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1134,7 +1134,7 @@ arm*-*-netbsdelf*) tm_file="dbxelf.h elfos.h ${nbsd_tm_file} arm/elf.h arm/aout.h ${tm_file} arm/netbsd-elf.h" extra_options="${extra_options} netbsd.opt netbsd-elf.opt" tmake_file="${tmake_file} arm/t-arm" - target_cpu_cname="arm6" + target_cpu_cname="strongarm" ;; arm*-*-linux-*) # ARM GNU/Linux with ELF tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h arm/elf.h arm/linux-gas.h arm/linux-elf.h" @@ -3987,7 +3987,7 @@ case "${target}" in TM_MULTILIB_CONFIG="$with_multilib_list" fi fi - target_cpu_cname=${target_cpu_cname:-arm6} + target_cpu_cname=${target_cpu_cname:-arm7tdmi} with_cpu=${with_cpu:-$target_cpu_cname} ;;