From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 19914 invoked from network); 16 Mar 1998 13:41:10 -0000 Received: from mail11.voicenet.com (HELO voicenet.com) (207.103.0.37) by mail2.redhat.com with SMTP; 16 Mar 1998 13:41:10 -0000 Received: (qmail 27625 invoked from network); 16 Mar 1998 13:41:09 -0000 Received: from rotary926-pri.voicenet.com (HELO voicenet.com) (209.71.52.26) by mail11.voicenet.com with SMTP; 16 Mar 1998 13:41:09 -0000 Message-ID: <350D2C63.F3D241F4@voicenet.com> Date: Mon, 16 Mar 1998 08:43:00 -0500 From: Uncle George Organization: None Avail X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: "axp-list@redhat.com" CC: "redhat-devel-list@redhat.com" Subject: Gcc: Conversion of NaN => int Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit this simple routine gives a floating point exception on my alpha/LX. it doesn't help if u use the -mieee switch. APARENTLY float conversion instructions are not SOFTWARE TRAPED!!! this same routine does not give a SIGFPE on a 386 box, but if u examine "i" u will see that there is an 0x80000000 there ( where i expected a 0 ). Are there ieee float rules for convertint NAN/INF float/doubles to long/int? gat main() { float f, a,b; int i; a = 0.; b = 0.; f = a/b; /* f = NaN */ i = (int)f; /* Conversion gets SIGFPE! */ }