On 22/10/2018 19:14, co...@sdf.org wrote: > On Mon, Oct 22, 2018 at 03:56:24PM +0100, Richard Earnshaw (lists) wrote: >> I think strongarm would be a better choice. I'm not aware of anyone >> running NetBSD on Arm8 cpus. >> >> Otherwise, this is fine with a suitable ChangeLog entry. >> >> R. > > I hope this is OK. Thanks! > > Maya Rashish <co...@sdf.org> > > PR target/86383 > * config.gcc (arm*-*-*): Change default -mcpu to strongarm. > > > diff --git a/gcc/config.gcc b/gcc/config.gcc > index 720e6a737..23e2e85c8 100644 > --- a/gcc/config.gcc > +++ b/gcc/config.gcc > @@ -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:-strongarm} > with_cpu=${with_cpu:-$target_cpu_cname} > ;; > >
Thinking about this overnight and discussing with some colleagues, we've concluded that the best generic default is probably ARM7TDMI, since StrongArm is now on the deprecated list (note, not obsolete - yet) as it lacks support for Thumb. Because of this I've changed the NetBSD default to StrongARM as that reflects that this target can still support ARMv4 devices. So I've committed this patch: 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. R.
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} ;;