Re: Go patch committed: Update to current Go library

2011-05-26 Thread Rainer Orth
Ian Lance Taylor writes: > Rainer Orth writes: > >> * While I get >> >> // var ___iob [59+1]___FILE >> >> now, there's still >> >> var __lastbuf *_FILE >> >> left, with commented >> >> // type _FILE struct { _cnt int32; _ptr *uint8; _base *uint8; _flag uint8; >> _file >> uint8; __orientati

Re: Go patch committed: Update to current Go library

2011-05-25 Thread Ian Lance Taylor
Rainer Orth writes: >has > > typedef union { > long double _q; > uint32_t_l[4]; > } upad128_t; > > I already have to provide a _upad128_t replacement for other uses, but > it would really help to support this directly. I think I have fixed this problem with th

Re: Go patch committed: Update to current Go library

2011-05-25 Thread Ian Lance Taylor
Rainer Orth writes: > * While I get > > // var ___iob [59+1]___FILE > > now, there's still > > var __lastbuf *_FILE > > left, with commented > > // type _FILE struct { _cnt int32; _ptr *uint8; _base *uint8; _flag uint8; > _file > uint8; __orientation INVALID-bit-field; __ionolock INVALID-bi

Re: Go patch committed: Update to current Go library

2011-05-25 Thread Rainer Orth
Ian Lance Taylor writes: > I just committed a patch to godump.c which I think should fix this > issue. Let me know if it doesn't. There are several issues now: * While I get // var ___iob [59+1]___FILE now, there's still var __lastbuf *_FILE left, with commented // type _FILE struct {

Re: Go patch committed: Update to current Go library

2011-05-24 Thread Ian Lance Taylor
Rainer Orth writes: > One needs to check for putenv vs. setenv and handle that in > go-setenv.c. I've hacked around the issue for the moment to at least > let bootstrap succeed. I fixed this problem like so. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline.

Re: Go patch committed: Update to current Go library

2011-05-24 Thread Ian Lance Taylor
Rainer Orth writes: > 2011-05-20 Rainer Orth > > libgo: > * syscalls/socket_irix.go (Addrinfo): Define. > Declare AI_*, EAI_* constants. Committed. Thanks. Ian

Re: Go patch committed: Update to current Go library

2011-05-24 Thread Ian Lance Taylor
Rainer Orth writes: > 2011-05-20 Rainer Orth > > libgo: > * Makefile.am (go_net_sock_file): Use go/net/cgo_linux.go if > LIBGO_IS_IRIX or LIBGO_IS_SOLARIS. > (go_net_sock_file): Use go/net/sock_linux.go if > LIBGO_IS_IRIX or LIBGO_IS_SOLARIS. > * Makefile.in

Re: Go patch committed: Update to current Go library

2011-05-24 Thread Ian Lance Taylor
Rainer Orth writes: > On recent Solaris 11, I also have: > > const __PATH_SYSVOL = "/system/volatile" > const __PATH_UTMPX = __PATH_SYSVOL "/utmpx" > const __PATH_VARRUN = __PATH_SYSVOL "/" > > For the moment, I'm just omitting the offending declarations in > mksysinfo.sh. This patch should fix

Re: Go patch committed: Update to current Go library

2011-05-24 Thread Ian Lance Taylor
Rainer Orth writes: > includes , which leads to > > // type ___FILE struct { _cnt int32; _ptr *uint8; _base *uint8; _flag uint8; > _magic uint8; __orientation INVALID-bit-field; __ionolock INVALID-bit-field; > __seekable INVALID-bit-field; __extendedfd INVALID-bit-field; __xf_nocheck > INVALI

Re: Go patch committed: Update to current Go library

2011-05-20 Thread Ian Lance Taylor
Jakub Jelinek writes: > It broke Linux bootstrap too. > includes which has: > enum > { > IPPORT_ECHO = 7,/* Echo service. */ > ... > IPPORT_RESERVED = 1024, > ... > }; > and later on has: > #ifdef __USE_XOPEN2K > /* Highest reserved Internet port number. */ > # define

Re: Go patch committed: Update to current Go library

2011-05-20 Thread Rainer Orth
Rainer Orth writes: > IRIX might have similar issues, I'm currently checking. It didn't, but there are two others: /vol/gcc/src/hg/trunk/local/libgo/runtime/go-setenv.c: In function 'setenv_c': /vol/gcc/src/hg/trunk/local/libgo/runtime/go-setenv.c:44:3: error: implicit declaration of function

Re: Go patch committed: Update to current Go library

2011-05-20 Thread Rainer Orth
There are more issues on Solaris, though: /vol/gcc/src/hg/trunk/local/libgo/go/net/cgo_bsd.go:13:25: error: expected package /vol/gcc/src/hg/trunk/local/libgo/go/net/cgo_bsd.go:13:30: error: expected ';' or newline after top level declaration /vol/gcc/src/hg/trunk/local/libgo/go/net/cgo_bsd.go:1

Re: Go patch committed: Update to current Go library

2011-05-20 Thread Jakub Jelinek
On Fri, May 20, 2011 at 03:44:07PM +0200, Rainer Orth wrote: > Ian Lance Taylor writes: > > > I have committed a patch to update libgo to the current version of the > > Go library. This patch includes some minor changes to the Go frontend > > and to the testsuite. The patch is too large to incl

Re: Go patch committed: Update to current Go library

2011-05-20 Thread Rainer Orth
Ian Lance Taylor writes: > I have committed a patch to update libgo to the current version of the > Go library. This patch includes some minor changes to the Go frontend > and to the testsuite. The patch is too large to include here, but most > of it is simply a copy of the changes to the maste