Re: Go patch committed: Provide matherr function

2012-02-09 Thread Ian Lance Taylor
Rainer Orth writes: > I could give it a try once the current bootstraps are finished. For the > moment I've shamelessly adapted the following from the __GNUC__ section > of Solaris 11 : I committed this patch which ought to work. Bootstrapped and ran Go testsuite on i386-pc-solaris2.11. Ian

Re: Go patch committed: Provide matherr function

2012-02-09 Thread Rainer Orth
Ian Lance Taylor writes: >> Unfortunately, this breaks the libgo build on Solaris 8 and 9: >> >> /vol/gcc/src/hg/trunk/local/libgo/runtime/go-matherr.c: In function >> 'matherr': >> /vol/gcc/src/hg/trunk/local/libgo/runtime/go-matherr.c:38:17: error: 'NAN' >> undeclared (first use in this funct

Re: Go patch committed: Provide matherr function

2012-02-09 Thread Ian Lance Taylor
Rainer Orth writes: > Ian Lance Taylor writes: > >> On SVID-based systems, when certain math functions encounter an >> exceptional condition they call a magic function named matherr. That >> function is permitted to change the result which the math functions will >> return. a program is permit

Re: Go patch committed: Provide matherr function

2012-02-09 Thread Ian Lance Taylor
Rainer Orth writes: > Ian Lance Taylor writes: > >> On SVID-based systems, when certain math functions encounter an >> exceptional condition they call a magic function named matherr. That >> function is permitted to change the result which the math functions will >> return. a program is permit

Re: Go patch committed: Provide matherr function

2012-02-09 Thread Rainer Orth
Ian Lance Taylor writes: > On SVID-based systems, when certain math functions encounter an > exceptional condition they call a magic function named matherr. That > function is permitted to change the result which the math functions will > return. a program is permitted to provide its own versio

Go patch committed: Provide matherr function

2012-02-08 Thread Ian Lance Taylor
On SVID-based systems, when certain math functions encounter an exceptional condition they call a magic function named matherr. That function is permitted to change the result which the math functions will return. a program is permitted to provide its own version of matherr. Solaris works this w