From: Stefan Traby <stefan@sime.com>
Subject: Re: floating exception
Date: Tue, 13 Jan 1998 22:25:16 +0100 [thread overview]
Message-ID: <2ed730b1f6e96a0e5f06ba87f2b9cfcd.axp-list@archive.invalid> (raw)
> dg@cogency.co.uk (David Gilbert) wrote:
> > So what happens without -mieee? He is seeing traps without -mieee.
> If you do not compile with -mieee, application will receive a SIGFPE
> exception, and crash if the signal is not handled, in the case of NaNs,
> Infinities, and denormals.
oups, hmm, ok, you agree with me that the following is heavy outdated ?
--------------
This is Edition 0.06, last updated 23 December 1994, of `The GNU C
Library Reference Manual', for Version 1.09 Beta of the GNU C Library.
--------------
--------------
None of the mathematical functions ever generates signals as a
result of domain or range errors. In particular, this means that you
won't see `SIGFPE' signals generated within these functions. (*Note
Signal Handling::, for more information about signals.)
--------------
What means this good old text: None of the ANS-C fp-funcs (in libc) use
if(NAN != NAN) raise(SIGFPE); internally,
but the kernel may raise real fpu-exception by sending SIGFPE ??
I interpret this as: If you use glibc ANS-C fp-funcs only (not asm-inline),
installing an SIGFPE handler is a paranoid action.
I think this info-file is only outdated and obsolete.
I don't have an AXP nor I wrote fp-code over the last three years...
gcc handles NAN well under i387+ because FPU-exceptions on an intel
can be masked. I don't know it, but your posting makes me think
that masking is not possible on AXP, so this info-file is simply
outdated because it depends on FPUs where exceptions may be masked.
Is this assumption correct ?
If it's correct than "-mieee" means libm installs a SIGFPE handler itself and
fakes errno, but without "-mieee", SIGFPE is passed to the app ?
I'm in panic for now. If SIGFPE cannot be avoided at all
(ok, it can, SIG_IGN, -mieee), fp-pthreads programming must be near to hell.)
At moment, I know nothing but I'm heavy confused. :-(
In my "dream word" SIGFPE doesn't exists.
Give me some light, please.
--
ciao -
Stefan
Stefan Traby phone: +43-3133-6107-2
Mitterlasznitzstr. 13 fax: +43-3133-6107-9
8302 Nestelbach mailto://stefan@sime.com
Austria
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1998-01-13 21:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-13 21:25 Stefan Traby [this message]
[not found] <Pine.SOL.3.91.980114105358.14105A-100000@greco2>
1998-01-14 16:00 ` floating exception Michal Jaegermann
[not found] <199801132125.WAA03288@stefan.sime.com>
1998-01-13 22:42 ` Michal Jaegermann
1998-01-14 13:29 ` Jerry Feldman
[not found] <199801132242.PAA03608@ellpspace.math.ualberta.ca>
1998-01-14 9:58 ` Alessandro Mirone
-- strict thread matches above, loose matches on Subject: below --
1998-01-13 20:11 Richard Hadsell
1998-01-13 16:03 David Gilbert
1998-01-13 17:18 ` Jerry Feldman
[not found] <34BB6FB0.1092A7A0@cogency.co.uk>
1998-01-13 15:24 ` Jerry Feldman
1998-01-13 15:09 Richard Hadsell
1998-01-13 13:44 David Alan Gilbert
[not found] <Pine.SOL.3.91.980113105530.27582E-100000@greco2>
1998-01-13 13:25 ` Jerry Feldman
1998-01-13 11:00 Alessandro Mirone
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