From: Ian Lance Taylor Date: Fri, 1 Apr 2011 00:27:59 +0000 (+0000) Subject: * go.test/go-test.exp (go-set-goarch): Recognize MIPS ABIs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6979fa58f82f6e29197498ac25ad101e616aa391;p=gcc.git * go.test/go-test.exp (go-set-goarch): Recognize MIPS ABIs. From-SVN: r171814 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b9c24411bc5..9c03db42f7d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2011-03-31 Ian Lance Taylor + + * go.test/go-test.exp (go-set-goarch): Recognize MIPS ABIs. + 2011-03-31 Eric Botcazou * 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 7c6c06ffd11..3222f613a80 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"