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

From-SVN: r171814
This commit is contained in:
Ian Lance Taylor 2011-04-01 00:27:59 +00:00 committed by Ian Lance Taylor
parent d428585c13
commit 6979fa58f8
2 changed files with 34 additions and 0 deletions

View 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.

View 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"