From: Richard Henderson <rth@twiddle.net>
To: axp-list@redhat.com
Subject: Re: SIGFPE error on exponential underflow in g77
Date: Sat, 13 Mar 1999 09:13:59 -0800 [thread overview]
Message-ID: <19990313091359.A11127@twiddle.net> (raw)
In-Reply-To: <Pine.OSF.3.96.990308163517.13379J-100000@perf.zko.dec.com>; 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 <math.h> 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~
prev parent reply other threads:[~1999-03-13 17:22 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-04 22:02 SIGFPE error on exponential underflow in g77 Dave Arnett
1999-03-04 22:40 ` Andrei A. Dergatchev
1999-03-04 22:56 ` Greg Lindahl
1999-03-04 23:06 ` Joachim Wesner
1999-03-05 13:11 ` Greg Lindahl
1999-03-05 15:57 ` Dave Arnett
1999-03-05 16:24 ` Greg Lindahl
1999-03-05 22:08 ` Phillip Ezolt
1999-03-05 22:56 ` Alpa Processor no longer Number one :( Aaron
1999-03-05 22:27 ` Alpa Processor no longer Number one, nonsense phoenix2063
1999-03-05 23:35 ` Ron Farrer
1999-03-06 17:46 ` Kevin.Brown
1999-03-06 19:02 ` mgraffam
1999-03-06 21:21 ` Joachim Wesner
1999-03-06 21:47 ` mgraffam
1999-03-06 22:22 ` Kevin
1999-03-08 10:20 ` Jochen Kuepper
1999-04-09 12:35 ` Michael Wilhelm
1999-03-05 23:07 ` Alpa Processor no longer Number one :( Andrew Hobgood
1999-03-05 23:11 ` Greg Lindahl
1999-03-05 23:18 ` Ron Farrer
1999-03-06 14:28 ` Aaron
1999-03-06 0:02 ` Dan O'Reilly
1999-03-06 1:00 ` Guide to life, love, and Intel marketing techniques (Alpa Processor no longer...) Daniel J. Frasnelli
1999-03-08 11:24 ` Alpa Processor no longer Number one :( Phil Carmody
1999-03-07 22:00 ` SIGFPE error on exponential underflow in g77 Greg Lindahl
1999-03-08 6:51 ` Wes Bauske
1999-03-08 13:19 ` Greg Lindahl
1999-03-09 7:31 ` Neil Carlson
1999-03-08 20:23 ` Wes Bauske
1999-03-08 21:26 ` Joachim Wesner
1999-03-08 18:00 ` Dave Arnett
1999-03-08 18:31 ` Greg Lindahl
1999-03-08 19:30 ` Phillip Ezolt
1999-03-08 20:13 ` Greg Lindahl
1999-03-08 21:47 ` Phillip Ezolt
1999-03-08 21:58 ` Dave Arnett
1999-03-13 17:13 ` Richard Henderson [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox