From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,84278579ba085c08 X-Google-Attributes: gid111c93,public From: Matt Grossman Subject: Re: FP exceptions on redhat 5.1 Date: 1998/09/11 Message-ID: #1/1 X-Deja-AN: 390342209 Sender: mattg@mattg.oz.net References: <35F9BAB0.5DDE@wizard.com> Organization: Sense Networking Seattle (http://www.oz.net) Newsgroups: comp.os.linux.alpha "H.W. Stockman" writes: > Conrad Steenberg wrote: > > > > Hi all > > > > I have this really annoying problem with egcs-1.02 that came with Redhat 5.1: > > A floating point exception would be raised whenever an underflow occurs. > > > > My question is this: is there an easy way to disable FP exceptions? I can live > > with having a few NaN's generated now and again, but I don't want to litter > > the code with if's to test for underflows... > > Isn't there a compiler switch to disable IEEE handling > of denormals? Most alpha compilers make such a condition > the default, since there alpha doesn't handle denormals > in hardware. Yes, -mieee and friends. Do an "info gcc" and look under Invoking GCC/Submodel Options options for further information. It will probably make your code run slower. Matt Grossman mattg@oz.net http://www.oz.net/~mattg