From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,b06f4cacbfe0ca95 X-Google-Attributes: gid111c93,public From: lindahl@pbm.com (Greg Lindahl) Subject: Re: spurious FPE with g++ Date: 1999/07/22 Message-ID: <7n7voh$ah@news1.newsguy.com>#1/1 X-Deja-AN: 504154548 References: <3796DAB0.5FC44337@physik.uni-freiburg.de> Organization: a guest of Shadow Island Games Newsgroups: comp.os.linux.alpha Michael Walter writes: > and get spurious Floating point exception with properly tested > source code, which runs on SGI-IRIX as well as on Pentium-PC's > with g++ version That isn't proof. The SGI and g++ by default on Pentium PC's uses the IEEE mode which allows infinity etc. By default on an Alpha, infinity and NaN cause a fault. I would suggest using gdb to figure out exactly what the fault is. You should also try the -mieee option to gcc. A common, different problem is that the default Alpha math libraries generate IEEE extreme values even when -mieee is not specified. You can get around that by using the Compaq math libraries, which never return extreme values. -- g