go-test.exp (go-set-goarch): Update MIPS architecture names.
authorJames Cowgill <James.Cowgill@imgtec.com>
Fri, 23 Jun 2017 13:19:30 +0000 (13:19 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 23 Jun 2017 13:19:30 +0000 (13:19 +0000)
* go.test/go-test.exp (go-set-goarch): Update MIPS architecture
        names.

From-SVN: r249589

gcc/testsuite/ChangeLog
gcc/testsuite/go.test/go-test.exp

index b41c8d9c4416f1a03d048a890844054a742f590d..24532f7873e749e7e1e785d4f41ad2c238e8dbed 100644 (file)
@@ -1,3 +1,8 @@
+2017-06-23  James Cowgill  <James.Cowgill@imgtec.com>
+
+       * go.test/go-test.exp (go-set-goarch): Update MIPS architecture
+        names.
+
 2017-06-22  Matt Turner  <mattst88@gmail.com>
 
        * gcc.target/i386/builtin_target.c: Add Kaby Lake models to
index 5f6ef299e55c31c484ba4ed714c6f01c054e86a0..4b10e4e2d16a68c5f62d88acd37da1265ec96c39 100644 (file)
@@ -213,29 +213,27 @@ proc go-set-goarch { } {
                #error FOO
                #endif
            }] {
-               set goarch "mipso32"
+               set goarch "mips"
            } elseif [check_no_compiler_messages mipsn32 assembly {
                #if _MIPS_SIM != _ABIN32
                #error FOO
                #endif
            }] {
-               set goarch "mipsn32"
+               set goarch "mips64p32"
            } elseif [check_no_compiler_messages mipsn64 assembly {
                #if _MIPS_SIM != _ABI64
                #error FOO
                #endif
            }] {
-               set goarch "mipsn64"
-           } elseif [check_no_compiler_messages mipso64 assembly {
-               #if _MIPS_SIM != _ABIO64
-               #error FOO
-               #endif
-           }] {
-               set goarch "mipso64"
+               set goarch "mips64"
            } else {
                perror "$target_triplet: unrecognized MIPS ABI"
                return ""
            }
+
+           if [istarget "mips*el-*-*"] {
+               append goarch "le"
+           }
        }
        "powerpc*-*-*" {
            if [check_effective_target_ilp32] {