This patch by Tobias Klauser adds (32-bit) riscv support for the getrandom function in internal/syscall/unix. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline.
Ian
274fa3704bdb79f75088e245772150ab1e83b460 diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index c8b78bfda04..9a33735b9c7 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -74199467ea912138c1b76e9a156bb47886be1436 +925d115397e7ec663f669ee5ac31b6dfccea5724 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_generic.go b/libgo/go/internal/syscall/unix/getrandom_linux_generic.go index 0c79ae54f4b..007e769c397 100644 --- a/libgo/go/internal/syscall/unix/getrandom_linux_generic.go +++ b/libgo/go/internal/syscall/unix/getrandom_linux_generic.go @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. // +build linux -// +build arm64 arm64be nios2 riscv64 +// +build arm64 arm64be nios2 riscv riscv64 package unix