From owner-freebsd-current Wed Mar 19 5:13:22 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3376037B401 for ; Wed, 19 Mar 2003 05:13:21 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78B9B43FB1 for ; Wed, 19 Mar 2003 05:13:20 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h2JDDHmR000830; Wed, 19 Mar 2003 05:13:17 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h2JDDHnf000829; Wed, 19 Mar 2003 05:13:17 -0800 (PST) (envelope-from das@FreeBSD.ORG) Date: Wed, 19 Mar 2003 05:13:17 -0800 From: David Schultz To: Till Riedel Cc: freebsd-current@FreeBSD.ORG Subject: Re: libm problem Message-ID: <20030319131317.GA670@HAL9000.homeunix.com> Mail-Followup-To: Till Riedel , freebsd-current@FreeBSD.ORG References: <20030318173051.GA2322@f111.hadiko.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030318173051.GA2322@f111.hadiko.de> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Till Riedel : > {till@sabbath}-{~} $ cat test.c > #include "math.h" > > int main() > { > int base=8; > int dim=2; > float res; > res=pow((float)base,(float)dim); > printf("%f\n",res); > return 0; > } > {till@sabbath}-{~} $ gcc -lm test.c > {till@sabbath}-{~} $ ./a.out > 1.000000 > > what happened to my libm??? > on my 4.8 box the result is 64 by the way :-) > CPU: Pentium 4 (2411.60-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 > any suggestions? I can't reproduce your problem on dual PPro or Celeron systems. Did you have any optimizations other than -O set when you made world? It would be helpful if you could drop into gdb and give me the output of 'print/x {int}&res' right after the call to pow(). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message