[arm] Update default CPUs during configure
authorRichard Earnshaw <rearnsha@arm.com>
Tue, 23 Oct 2018 10:19:15 +0000 (10:19 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Tue, 23 Oct 2018 10:19:15 +0000 (10:19 +0000)
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

gcc/ChangeLog
gcc/config.gcc

index f382b209b7881f017925cdc360cd29d9062809fc..3314b50f8a4a251c0d4b1aba1ec965f21f768388 100644 (file)
@@ -1,3 +1,10 @@
+2018-10-23  Richard Earnshaw  <rearnsha@arm.com>
+
+       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  <rguenther@suse.de>
 
        PR tree-optimization/87700
index 720e6a7373dca8cde3caea251a4c45cd593f5a04..a2e89e23706aee0a3f9f326576c53b2cececd258 100644 (file)
@@ -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}
                ;;