From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 24BBB2F179 for ; Tue, 27 Feb 2001 08:25:27 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f1RDQCl18479 for axp-list@listman.redhat.com; Tue, 27 Feb 2001 08:26:12 -0500 Received: from max.phys.uu.nl (max.phys.uu.nl [131.211.32.73]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f1RDQC418474 for ; Tue, 27 Feb 2001 08:26:12 -0500 Received: from itpuu.phys.uu.nl (itpuu.phys.uu.nl [131.211.32.67]) by max.phys.uu.nl (8.9.3/8.9.3/hjm) with ESMTP id OAA32355 for ; Tue, 27 Feb 2001 14:25:19 +0100 (MET) Date: Tue, 27 Feb 2001 14:25:18 +0100 (MET) From: Reinier Bikker To: AXP-Liste Subject: Re: exp underflow in glibc and compaq math library/kernel bug ? In-Reply-To: <20010226134933.A20708@itp.uni-hannover.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On Mon, 26 Feb 2001, Helge Kreutzmann wrote: : > #include : > int main(void) : > { : > double x; : > x=exp(-744.769); : > x/=2.0; : > printf("%g\n",x); : > return(0); : > } : > : > Compilation with gcc and linking with libm from glibc-2.2.1 gives a : > floating point exception immediately. With compaq math library or : > compaq C compiler it is not so easy but it is also possible to get a : > FPE, one has to play with numbers. Why is it so? : > How was this compiled? With gcc you have to specify -mieee explicitly both when compiling and linking. With ccc you use -ieee, but -mieee is mapped to -ieee. Reinier.