[gcc/devel/ranger] syscall: fix riscv64 GNU/Linux build
Aldy Hernandez
aldyh@gcc.gnu.org
Wed Jun 17 18:35:05 GMT 2020
https://gcc.gnu.org/g:79530f94e9c53153c4fae3b50a8c938f89db0c32
commit 79530f94e9c53153c4fae3b50a8c938f89db0c32
Author: Ian Lance Taylor <iant@golang.org>
Date: Mon Feb 3 12:29:45 2020 -0800
syscall: fix riscv64 GNU/Linux build
Make syscall_linux_riscv64.go, new in the 1.14beta1 release, look like
the other syscall_linux_GOARCH.go files.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/217577
Diff:
---
gcc/go/gofrontend/MERGE | 2 +-
libgo/go/syscall/syscall_linux_riscv64.go | 14 --------------
2 files changed, 1 insertion(+), 15 deletions(-)
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index 40529518b26..27f4ce342e5 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-d796680b5a78f686ed118578e81d5b1adf48508d
+c94637ad6fd38d4814fb02d094a1a73f19323d71
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/syscall/syscall_linux_riscv64.go b/libgo/go/syscall/syscall_linux_riscv64.go
index e9aab94e3a1..16d8709708d 100644
--- a/libgo/go/syscall/syscall_linux_riscv64.go
+++ b/libgo/go/syscall/syscall_linux_riscv64.go
@@ -4,20 +4,6 @@
package syscall
-import "unsafe"
-
func (r *PtraceRegs) PC() uint64 { return r.Pc }
func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc }
-
-func (iov *Iovec) SetLen(length int) {
- iov.Len = uint64(length)
-}
-
-func (msghdr *Msghdr) SetControllen(length int) {
- msghdr.Controllen = uint64(length)
-}
-
-func (cmsg *Cmsghdr) SetLen(length int) {
- cmsg.Len = uint64(length)
-}
More information about the Gcc-cvs
mailing list