This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Go patch committed: Drop log2 and trunk


Ian Lance Taylor <iant@google.com> writes:

> Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:
>
>> The patch allowed the bootstrap to complete successfully, but since
>> libgo.so now has undefined references to log2 and trunc, all Go
>> execution still fail.
>
> I went ahead and removed the uses of the libc log2 and trunc functions,
> on the basis that although they are in C99 they are not in C89.
> Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
> Committed to mainline.

Thanks, that worked wonders for Solaris 9/SPARC results :-)  (Solaris
8/SPARC bootstrap is currently broken for unrelated reasons.)

We're now down to four testsuite failures in libgo:

--- FAIL: math_test.TestLdexp (0.00 seconds)
	???:1: Ldexp(-1, -1075) = 0, want -0
FAIL
FAIL: math

FAIL: time

No hint why.

--- FAIL: rand.TestRead (0.00 seconds)
	???:1: Read(buf) = 1040, %!s(<nil>)
FAIL
FAIL: crypto/rand

Before Solaris 11, reads from /dev/urandom are restricted to 1040
bytes.  This always holds for /dev/random, but isn't documented in the
Solaris 10 random(7D) manpage.  On Solaris 11, I find:

     The limitation per read for /dev/random is 1040  bytes.  The
     limit for /dev/urandom is (128 * 1040).

and the change could be confirmed in the OpenSolaris sources.

FAIL: net/http

Again, no hint what's wrong.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]