]> gcc.gnu.org Git - gcc.git/commit
runtime: use _libgo_off_t_type when calling C mmap
authorIan Lance Taylor <iant@golang.org>
Thu, 27 Oct 2022 00:23:42 +0000 (17:23 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 28 Oct 2022 00:12:57 +0000 (17:12 -0700)
commit0a2984dd10598ba091b8e992145998fb1640a9b8
treea2975255a183f1a29d1b864c8c82d10516ca10b6
parentfc01cfa96786ba94077e45c475768f38592e63cf
runtime: use _libgo_off_t_type when calling C mmap

The last argument to the C mmap function is type off_t, not uintptr.
On some 32-bit systems, off_t is larger than uintptr.

Based on patch by Sören Tempel.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/445735
gcc/go/gofrontend/MERGE
libgo/go/runtime/mem_gccgo.go
This page took 0.058873 seconds and 6 git commands to generate.