https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110297

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Ian Lance Taylor <i...@gcc.gnu.org>:

https://gcc.gnu.org/g:efecb298d880cda20f8d7bea2d7b500a9752ce56

commit r14-1999-gefecb298d880cda20f8d7bea2d7b500a9752ce56
Author: Ian Lance Taylor <i...@golang.org>
Date:   Mon Jun 19 14:57:54 2023 -0700

    runtime: use a C function to call mmap

    The final argument to mmap, of type off_t, varies.
    In CL 445375 we changed it to always use the C off_t type,
    but that broke 32-bit big-endian Linux systems.  On those systems,
    using the C off_t type requires calling the mmap64 function.
    In C this is automatically handled by the <sys/mman.h> file.
    In Go, we would have to change the magic //extern comment to
    call mmap64 when appropriate.  Rather than try to get that right,
    we instead go through a C function that uses C implicit type
    conversions to pick the right type.

    Fixes PR go/110297

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/504415

Reply via email to