syscall, internal/syscall/unix: Fix getrandom, clone on sparc64
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 12 Oct 2016 14:28:05 +0000 (14:28 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 12 Oct 2016 14:28:05 +0000 (14:28 +0000)
commitc8dc49fb0318088e30040d1162cea181931f1ab4
treebcfc25031f13595df938603e4e0d86327cfde9a2
parenta25f5b28d740a5ae7a81608e0b10df94f110d7a5
syscall, internal/syscall/unix: Fix getrandom, clone on sparc64

    Since sparc is a valid architecture, the name of
    getrandom_linux_sparc.go means that it will be ignored on sparc64,
    even though it's whitelisted with a +build line.

    On SPARC, clone has a unique return value convention which requires
    some inline assembly to convert it to the normal convention.

    Reviewed-on: https://go-review.googlesource.com/30873

From-SVN: r241051
gcc/go/gofrontend/MERGE
libgo/Makefile.am
libgo/Makefile.in
libgo/go/internal/syscall/unix/getrandom_linux_sparc.go [deleted file]
libgo/go/internal/syscall/unix/getrandom_linux_sparcx.go [new file with mode: 0644]
libgo/go/syscall/clone_linux.c [new file with mode: 0644]
libgo/go/syscall/exec_linux.go
libgo/mksysinfo.sh