From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 13618 invoked from network); 13 Mar 1999 17:22:15 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 13 Mar 1999 17:22:15 -0000 Received: from piglet.twiddle.net (rth@piglet.twiddle.net [207.104.6.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id MAA03854 for ; Sat, 13 Mar 1999 12:13:59 -0500 Received: (from rth@localhost) by piglet.twiddle.net (8.8.7/8.8.7) id JAA11170 for axp-list@redhat.com; Sat, 13 Mar 1999 09:13:59 -0800 Message-ID: <19990313091359.A11127@twiddle.net> Date: Sat, 13 Mar 1999 09:13:59 -0800 From: Richard Henderson To: axp-list@redhat.com Subject: Re: SIGFPE error on exponential underflow in g77 References: <199903082013.PAA16242@adder.cs.Virginia.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2 In-Reply-To: ; from Phillip Ezolt on Mon, Mar 08, 1999 at 04:47:24PM -0500 On Mon, Mar 08, 1999 at 04:47:24PM -0500, Phillip Ezolt wrote: > If it's broken, let's fix it. How does the complier tell the library > that the code was compiled with -mieee? What isn't it doing the right > thing, and what exactly IS the right thing? It doesn't at the moment, it only tells the preprocessor. One way for it to be accomplished is for to change the assembly name of the functions when -mieee (or no -mieee, depending on your view of life). E.g. #ifdef _IEEE_FP __extension__ double exp(double) __asm__("_ieee_exp"); #else double exp(double); #endif When it makes a difference whether we change names based on -mieee or the reverse depends on your philosophy as to whether a user should be allowed to mix -mieee and -mno-ieee code, and what happens if a pointer to `exp' gets put into a table. r~