* go.test/go-test.exp (go-set-goarch): Recognize MIPS ABIs.
authorIan Lance Taylor <iant@google.com>
Fri, 1 Apr 2011 00:27:59 +0000 (00:27 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 1 Apr 2011 00:27:59 +0000 (00:27 +0000)
From-SVN: r171814

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

index b9c24411bc5c314504c88e85aa0d363357b49700..9c03db42f7d0a62e3300c7b2f722da828150c4fc 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-31  Ian Lance Taylor  <iant@google.com>
+
+       * go.test/go-test.exp (go-set-goarch): Recognize MIPS ABIs.
+
 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gnat.dg/opt16.adb: New test.
index 7c6c06ffd1107d112c46e833cd9d126c1c1218e3..3222f613a800e0ad2d912a6e5c7dde34f1f85c74 100644 (file)
@@ -137,6 +137,36 @@ proc go-set-goarch { } {
                set goarch "amd64"
            }
        }
+       "mips-*-*" {
+           if [check_no_compiler_messages mipso32 assembly {
+               #if _MIPS_SIM != _ABIO32
+               #error FOO
+               #endif
+           }] {
+               set goarch "mipso32"
+           } elseif [check_no_compiler_messages mipsn32 assembly {
+               #if _MIPS_SIM != _ABIN32
+               #error FOO
+               #endif
+           }] {
+               set goarch "mipsn32"
+           } 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"
+           } else {
+               perror "$target_triplet: unrecognized MIPS ABI"
+               return ""
+           }
+       }
        "sparc*-*-*" {
            if [check_effective_target_ilp32] {
                set goarch "sparc"