From: Ian Lance Taylor Date: Wed, 21 Jun 2017 21:47:35 +0000 (+0000) Subject: internal/syscall/unix: implement randomTrap on mips64p32* X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c0478b33873f8201c103d0910d7f1d5dcfc2979;p=gcc.git internal/syscall/unix: implement randomTrap on mips64p32* Rename getrandom_linux_mipsn32.go to use the new architecture name for the n32 ABI and enable building it on mips64p32 and mips64p32le. Reviewed-on: https://go-review.googlesource.com/46151 From-SVN: r249474 --- diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 5ef0cc0c78c..74d94b9b0e1 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -b2bebba1f8a8185546c47f8460a3d5c2e31d0434 +c49c752b4d2934cff325dd540821c4b27cc61a05 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/libgo/go/internal/syscall/unix/getrandom_linux_mips64p32x.go b/libgo/go/internal/syscall/unix/getrandom_linux_mips64p32x.go new file mode 100644 index 00000000000..d8f6ae551d2 --- /dev/null +++ b/libgo/go/internal/syscall/unix/getrandom_linux_mips64p32x.go @@ -0,0 +1,11 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build mipsn32 mips64p32 mips64p32le + +package unix + +// Linux getrandom system call number. +// See GetRandom in getrandom_linux.go. +const randomTrap uintptr = 6317 diff --git a/libgo/go/internal/syscall/unix/getrandom_linux_mipsn32.go b/libgo/go/internal/syscall/unix/getrandom_linux_mipsn32.go deleted file mode 100644 index 8f481fa58dd..00000000000 --- a/libgo/go/internal/syscall/unix/getrandom_linux_mipsn32.go +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build mipsn32 - -package unix - -// Linux getrandom system call number. -// See GetRandom in getrandom_linux.go. -const randomTrap uintptr = 6317