aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/internal/bytealg/indexbyte_generic.go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2018-09-25 14:31:57 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2018-09-25 14:31:57 +0000
commitf5ec13f15ddaa6dc61b81d5c14cd8b30df896b40 (patch)
tree2f3289c7aec8cfae51b453ebed7c32164270cfe1 /libgo/go/internal/bytealg/indexbyte_generic.go
parentbe2df8bc38a14659f6a5604c22252f17ef2a2a6c (diff)
downloadgcc-f5ec13f15ddaa6dc61b81d5c14cd8b30df896b40.zip
gcc-f5ec13f15ddaa6dc61b81d5c14cd8b30df896b40.tar.gz
gcc-f5ec13f15ddaa6dc61b81d5c14cd8b30df896b40.tar.bz2
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
Diffstat (limited to 'libgo/go/internal/bytealg/indexbyte_generic.go')
-rw-r--r--libgo/go/internal/bytealg/indexbyte_generic.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/internal/bytealg/indexbyte_generic.go b/libgo/go/internal/bytealg/indexbyte_generic.go
index 890cd42..6e59fd1 100644
--- a/libgo/go/internal/bytealg/indexbyte_generic.go
+++ b/libgo/go/internal/bytealg/indexbyte_generic.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +ignore_for_gccgo
+// +build ignore_for_gccgo
// +build !386,!amd64,!amd64p32,!s390x,!arm,!arm64,!ppc64,!ppc64le,!mips,!mipsle,!mips64,!mips64le,!wasm
package bytealg