runtime: use correct types in __go_ptrace shim
authorNikhil Benesch <nikhil.benesch@gmail.com>
Wed, 14 Oct 2020 19:02:12 +0000 (19:02 +0000)
committerIan Lance Taylor <iant@golang.org>
Thu, 15 Oct 2020 20:36:08 +0000 (13:36 -0700)
commitf33ac3b0cd9f88be8faadded88e40a511f01c32a
tree2bfe6904b72aec7c19c177182fd8966d35f6653a
parent6949fbefe28134744a86c5d7b8d9c17fcf3a16a0
runtime: use correct types in __go_ptrace shim

Make the types of the addr and data arguments in the __go_ptrace shim
match the types declared in Go and the types declared by the C ptrace
function, i.e., void*. This avoids a warning about an implicit
int-to-pointer cast on some platforms.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/262340
gcc/go/gofrontend/MERGE
libgo/runtime/go-varargs.c