syscall, internal/syscall/unix: Fix getrandom, clone on sparc64
commit0509fa0eae193f8d99886e9b6a1feda4c6c16356
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Oct 2016 14:28:05 +0000 (12 14:28 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Oct 2016 14:28:05 +0000 (12 14:28 +0000)
treebcfc25031f13595df938603e4e0d86327cfde9a2
parent2c9a4e9265b3ee6b53f10017a882993298d0a7ad
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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241051 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
libgo/Makefile.am
libgo/Makefile.in
libgo/go/internal/syscall/unix/getrandom_linux_sparcx.go [moved from libgo/go/internal/syscall/unix/getrandom_linux_sparc.go with 100% similarity]
libgo/go/syscall/clone_linux.c [new file with mode: 0644]
libgo/go/syscall/exec_linux.go
libgo/mksysinfo.sh