public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] go.test: update MIPS architecture names
@ 2017-06-23 12:40 James Cowgill
  2017-06-23 13:19 ` Ian Lance Taylor via gcc-patches
  0 siblings, 1 reply; 2+ messages in thread
From: James Cowgill @ 2017-06-23 12:40 UTC (permalink / raw)
  To: gcc-patches

Hi,

This updates the go architecture names on MIPS in line with the recent
changes to libgo.

I do not have commit access, so please can someone else commit this for
me.

Thanks,
James

2016-06-23  James Cowgill  <James.Cowgill@imgtec.com>

	* go.test/go-test.exp (go-set-goarch): update MIPS architecture
	names.
---
 gcc/testsuite/go.test/go-test.exp | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp
index 5f6ef299e55..4b10e4e2d16 100644
--- a/gcc/testsuite/go.test/go-test.exp
+++ b/gcc/testsuite/go.test/go-test.exp
@@ -213,29 +213,27 @@ proc go-set-goarch { } {
 		#error FOO
 		#endif
 	    }] {
-		set goarch "mipso32"
+		set goarch "mips"
 	    } elseif [check_no_compiler_messages mipsn32 assembly {
 		#if _MIPS_SIM != _ABIN32
 		#error FOO
 		#endif
 	    }] {
-		set goarch "mipsn32"
+		set goarch "mips64p32"
 	    } 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"
+		set goarch "mips64"
 	    } else {
 		perror "$target_triplet: unrecognized MIPS ABI"
 		return ""
 	    }
+
+	    if [istarget "mips*el-*-*"] {
+		append goarch "le"
+	    }
 	}
 	"powerpc*-*-*" {
 	    if [check_effective_target_ilp32] {
-- 
2.13.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] go.test: update MIPS architecture names
  2017-06-23 12:40 [PATCH] go.test: update MIPS architecture names James Cowgill
@ 2017-06-23 13:19 ` Ian Lance Taylor via gcc-patches
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor via gcc-patches @ 2017-06-23 13:19 UTC (permalink / raw)
  To: James Cowgill; +Cc: gcc-patches

On Fri, Jun 23, 2017 at 5:40 AM, James Cowgill <James.Cowgill@imgtec.com> wrote:
>
> This updates the go architecture names on MIPS in line with the recent
> changes to libgo.
>
> I do not have commit access, so please can someone else commit this for
> me.
>
> Thanks,
> James
>
> 2016-06-23  James Cowgill  <James.Cowgill@imgtec.com>
>
>         * go.test/go-test.exp (go-set-goarch): update MIPS architecture
>         names.

Thanks.  Committed.

Ian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-23 13:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-23 12:40 [PATCH] go.test: update MIPS architecture names James Cowgill
2017-06-23 13:19 ` Ian Lance Taylor via gcc-patches

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