Infer architecture from ABI for mips-mti* and mips-img* triplets.
authorMatthew Fortune <matthew.fortune@imgtec.com>
Wed, 14 Sep 2016 19:59:59 +0000 (19:59 +0000)
committerMatthew Fortune <mpf@gcc.gnu.org>
Wed, 14 Sep 2016 19:59:59 +0000 (19:59 +0000)
gcc/
* config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
and mips64r2 as default 32-bit and 64-bit architectures.
(mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
as default 32-bit and 64-bit architectures.

From-SVN: r240145

gcc/ChangeLog
gcc/config.gcc

index 85275186b958a6a90276e236b3d504a5f30df2d8..9b39906212cc3ef342d423e8a1bfec633e1dc14b 100644 (file)
@@ -1,3 +1,10 @@
+2016-09-14  Matthew Fortune  <matthew.fortune@imgtec.com>
+
+       * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
+       and mips64r2 as default 32-bit and 64-bit architectures.
+       (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
+       as default 32-bit and 64-bit architectures.
+
 2016-09-14  Pat Haugen  <pthaugen@us.ibm.com>
 
        * loop-unroll.c (unroll_loop_runtime_iterations): Set probability of succ edge.
index e544d767b4e364c8853d7ece3bffac22840fd51b..fc91ba79abffeb41e64674819ceb60eed2eccf21 100644 (file)
@@ -1985,6 +1985,8 @@ mips*-img-linux*)
        extra_options="${extra_options} linux-android.opt"
        tmake_file="${tmake_file} mips/t-img-linux"
        tm_defines="${tm_defines} MIPS_ISA_DEFAULT=37 MIPS_ABI_DEFAULT=ABI_32"
+       with_arch_32="mips32r6"
+       with_arch_64="mips64r6"
        gnu_ld=yes
        gas=yes
        ;;
@@ -1993,6 +1995,8 @@ mips*-mti-linux*)
        extra_options="${extra_options} linux-android.opt"
        tmake_file="${tmake_file} mips/t-mti-linux"
        tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32"
+       with_arch_32="mips32r2"
+       with_arch_64="mips64r2"
        gnu_ld=yes
        gas=yes
        ;;
@@ -2047,11 +2051,15 @@ mips*-mti-elf*)
        tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/n32-elf.h mips/sde.h mips/mti-elf.h"
        tmake_file="mips/t-mti-elf"
        tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32"
+       with_arch_32="mips32r2"
+       with_arch_64="mips64r2"
        ;;
 mips*-img-elf*)
        tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/n32-elf.h mips/sde.h mips/mti-elf.h"
        tmake_file="mips/t-img-elf"
        tm_defines="${tm_defines} MIPS_ISA_DEFAULT=37 MIPS_ABI_DEFAULT=ABI_32"
+       with_arch_32="mips32r6"
+       with_arch_64="mips64r6"
        ;;
 mips*-sde-elf*)
        tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/n32-elf.h mips/sde.h"