internal/bytealg, internal/cpu, internal/poll: portability fixes
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 25 Sep 2018 14:31:57 +0000 (14:31 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 25 Sep 2018 14:31:57 +0000 (14:31 +0000)
commitf5ec13f15ddaa6dc61b81d5c14cd8b30df896b40
tree2f3289c7aec8cfae51b453ebed7c32164270cfe1
parentbe2df8bc38a14659f6a5604c22252f17ef2a2a6c
internal/bytealg, internal/cpu, internal/poll: portability fixes

    In internal/bytealg correct a +build tag to never build indexbyte_generic.go
    for the gofrontend, where we always use indexbyte_native.go.

    For internal/cpu let the Makefile define CacheLineSize using goarch.sh,
    rather than trying to enumerate all the possibilities in cpu_ARCH.go files.

    In internal/poll call the C fcntl function rather than using SYS_FCNTL.
    Change mksysinfo.sh to ensure that F_GETPIPE_SZ is always defined,
    and check that in internal/poll.

    Reviewed-on: https://go-review.googlesource.com/137256

From-SVN: r264572
16 files changed:
gcc/go/gofrontend/MERGE
libgo/Makefile.am
libgo/Makefile.in
libgo/go/internal/bytealg/indexbyte_generic.go
libgo/go/internal/cpu/cpu_arm.go [deleted file]
libgo/go/internal/cpu/cpu_arm64.go
libgo/go/internal/cpu/cpu_mips.go [deleted file]
libgo/go/internal/cpu/cpu_mips64.go [deleted file]
libgo/go/internal/cpu/cpu_mips64le.go [deleted file]
libgo/go/internal/cpu/cpu_mipsle.go [deleted file]
libgo/go/internal/cpu/cpu_ppc64x.go
libgo/go/internal/cpu/cpu_s390x.go
libgo/go/internal/cpu/cpu_wasm.go [deleted file]
libgo/go/internal/cpu/cpu_x86.go
libgo/go/internal/poll/splice_linux.go
libgo/mksysinfo.sh