From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 7E6E53047C for ; Tue, 31 Oct 2000 05:08:40 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id e9VA8eQ04091 for axp-list@listman.redhat.com; Tue, 31 Oct 2000 05:08:40 -0500 Received: from hqvsbh1.ms.com (hqvsbh1.ms.com [205.228.12.103]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id e9VA8eD04087 for ; Tue, 31 Oct 2000 05:08:40 -0500 Received: (from uucp@localhost) by hqvsbh1.ms.com (8.9.3/fw v1.30) id FAA12574 for ; Tue, 31 Oct 2000 05:08:39 -0500 (EST) Received: from localhost(127.0.0.1) by hqvsbh1 via smap (4.1) id sma.9729869011.012096; Tue, 31 Oct 00 05:08:21 -0500 Received: (from uucp@localhost) by hqvsbh1.ms.com (8.9.3/8.9.3(vs)) id FAA11927 for ; Tue, 31 Oct 2000 05:08:18 -0500 (EST) X-Authentication-Warning: hqvsbh1.ms.com: Processed from queue /var/spool/mqueue-vs X-Authentication-Warning: hqvsbh1.ms.com: Processed by uucp with -C /etc/mail/sendmail.vs.cf Received: from cwsmh1.ms.com(138.20.13.27) by hqvsbh1 via smap (4.1) id sma.9729868831.011590; Tue, 31 Oct 00 05:08:03 -0500 Received: from msdw.com ([205.228.18.125]) by cwsmh1.morgan.com (8.8.5/imap+ldap v2.4) with ESMTP id KAA02983 for ; Tue, 31 Oct 2000 10:08:01 GMT Message-ID: <39FE9C23.7A6CEF2A@msdw.com> Date: Tue, 31 Oct 2000 10:17:07 +0000 From: Richard Polton X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.4.0-test9 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list Subject: strange (incorrect) arithmetic behaviour Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors Hi, I have stock RH6.1 on my LX164 machine. When executing the following code I see SIGFPE. #include #include main() { float a = -3.4e38; float b = 1.0; float c = a*b; printf( "%f\n%f\n%f\n", a, b, c); } In gdb I can see that c contains 2.4e-314 which is not the expected result ;). To compile I use egcs-2.91.66 as supplied with RH6.1 with no additional command line options. What am I missing or doing incorrectly? Thanks, Richard