public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Go testsuite patch committed: Recognize MIPS ABIs
@ 2011-04-01  0:28 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2011-04-01  0:28 UTC (permalink / raw)
  To: gcc-patches, gofrontend-dev

[-- Attachment #1: Type: text/plain, Size: 254 bytes --]

This patch to the Go testsuite driver recognizes the MIPS ABIs.  Ran Go
testsuite on x86_64-unknown-linux-gnu.  Committed to mainline.

Ian


2011-03-31  Ian Lance Taylor  <iant@google.com>

	* go.test/go-test.exp (go-set-goarch): Recognize MIPS ABIs.



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 1032 bytes --]

Index: go.test/go-test.exp
===================================================================
--- go.test/go-test.exp	(revision 171813)
+++ go.test/go-test.exp	(working copy)
@@ -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"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-01  0:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-01  0:28 Go testsuite patch committed: Recognize MIPS ABIs Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).