From owner-freebsd-java Sat Feb 15 0:30:51 2003 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C9BC37B401 for ; Sat, 15 Feb 2003 00:30:49 -0800 (PST) Received: from ms-smtp-02.texas.rr.com (ms-smtp-02.texas.rr.com [24.93.36.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AD7643F93 for ; Sat, 15 Feb 2003 00:30:48 -0800 (PST) (envelope-from wbooth@austin.rr.com) Received: from wdbnb.boothscientific.com (cs24243209-38.austin.rr.com [24.243.209.38]) by ms-smtp-02.texas.rr.com (8.12.5/8.12.2) with ESMTP id h1F8SBJT019559; Sat, 15 Feb 2003 03:28:11 -0500 (EST) From: David Booth To: parv , Huang wen hui Subject: Re: Math.pow bug for jdk1.3.1-p8 ? Date: Sat, 15 Feb 2003 02:30:42 -0600 User-Agent: KMail/1.5 Cc: java@FreeBSD.ORG References: <3E4C9DDD.4040204@gddsn.org.cn> <20030215011004.GB65944@moo.holy.cow> <20030215081046.GA68158@moo.holy.cow> In-Reply-To: <20030215081046.GA68158@moo.holy.cow> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302150230.42889.wbooth@austin.rr.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Saturday 15 February 2003 02:10 am, parv wrote: > in message <20030215011004.GB65944@moo.holy.cow>, > wrote parv thusly... > > > in message <3E4C9DDD.4040204@gddsn.org.cn>, > > wrote Huang wen hui thusly... > > > > > I build jdk1.3.1-p8 for 4.7-STABLE(today)... > > > > > > public class TestPow { > > > public static void main(String[] args) { > > > int exp =9; > > > int i = (int)Math.pow(2.0,(double)exp); > > > System.out.println("i="+i); > > > } > > > } > > > > > > %java TestPow > > > i=0 > > > > I tried it w/ jdk-1.3.1-p8 on 4.7-Release-p3; same result. But then > > Alexander said something about the gcc 3.2.1 bug, which i do have > > installed. I will try w/ gcc 3.2.2. > > Well it seems GCC 3.2.1 is not at fault. According to the log, the > port was built w/ system GCC (2.9.5). I did... > > grep -i gcc log-0213-2202 | grep -v '^/usr/bin/gcc' > > > ...which produced 71 lines beginning w/ 'gcc', plus patching log, > plus a few lines beginning w/ "adding: sun/rmi...". > > Java version is... > > java version "1.3.1-p8" > Java(TM) 2 Runtime Environment, Standard Edition (build > 1.3.1-p8-toor-030213-22:07) Classic VM (build 1.3.1-p8-toor-030213-22:07, > green threads, nojit) > > > - Parv I can confirm that it is not due to gcc3.2.1. I just built 1.3.1-p8 forcing it to compile wiht gcc3.2.2 and I see bogus output from TestPow, altho different from above: # java TestPow i=17 It worked correctly with 1.3.1-p7 built with the system gcc. I will now try rebuilding 1.3.7-p7 with gcc3.2.2 and see what happens. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message