aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2011-04-01 00:27:59 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-04-01 00:27:59 +0000
commit6979fa58f82f6e29197498ac25ad101e616aa391 (patch)
tree0be444c15a17d303451f08f6bb035380777dba56
parentd428585c130f90d2af6d3ec077ad282c9380d556 (diff)
downloadgcc-6979fa58f82f6e29197498ac25ad101e616aa391.zip
gcc-6979fa58f82f6e29197498ac25ad101e616aa391.tar.gz
gcc-6979fa58f82f6e29197498ac25ad101e616aa391.tar.bz2
* go.test/go-test.exp (go-set-goarch): Recognize MIPS ABIs.
From-SVN: r171814
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/go.test/go-test.exp30
2 files changed, 34 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index b9c2441..9c03db4 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp
index 7c6c06f..3222f61 100644
--- a/gcc/testsuite/go.test/go-test.exp
+++ b/gcc/testsuite/go.test/go-test.exp
@@ -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"