go: fix gcc6 (i686) build

This commit is contained in:
Juergen Buchmueller 2016-09-26 15:05:07 +02:00
parent 4aa7407914
commit 22e3ca6e59

View file

@ -44,9 +44,11 @@ do_extract() {
tar -xf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/go${version}.src.tar.gz" \
-C "${XBPS_BUILDDIR}/go" --strip-components=1
# Fix a gcc6 warning regarding signed shift left
# Fix gcc6 warnings regarding signed shift left
sed -i ${XBPS_BUILDDIR}/go_bootstrap/src/cmd/6c/txt.c \
-e's;f->vconst |= (vlong)~0 << 32;f->vconst = (vlong)(~0ull << 32);'
sed -i ${XBPS_BUILDDIR}/go_bootstrap/src/cmd/8g/ggen.c \
-e's;-1LL<<(t->width\*8-1);~0ULL<<(t->width*8-1);'
}
do_build() {