From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 4F7E03EA8A for ; Tue, 2 Jul 2002 09:03:19 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g62D3IN20123 for axp-list@listman.redhat.com; Tue, 2 Jul 2002 09:03:18 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g62D3Ia20119 for ; Tue, 2 Jul 2002 09:03:18 -0400 Received: from uldns1.unil.ch (uldns1.unil.ch [130.223.8.20]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g62CrO909980 for ; Tue, 2 Jul 2002 08:53:24 -0400 Received: from localhost ([127.0.0.1] helo=uldns1.unil.ch) by uldns1.unil.ch with esmtp (Exim 3.14 #1) for axp-list@redhat.com id 17PNJE-0003sp-00; Tue, 02 Jul 2002 15:03:08 +0200 Received: from ludwig-alpha.unil.ch ([192.42.197.33]) by uldns1.unil.ch with esmtp (Exim 3.14 #1) for axp-list@redhat.com id 17PNJE-0003sn-00; Tue, 02 Jul 2002 15:03:08 +0200 Received: from ludwig-alpha.unil.ch (chris@localhost) by ludwig-alpha.unil.ch (8.9.3/8.9.3) with ESMTP id PAA06721 for ; Tue, 2 Jul 2002 15:01:28 +0200 Message-Id: <200207021301.PAA06721@ludwig-alpha.unil.ch> X-Mailer: exmh version 2.5 01/15/2001 with nmh-1.0 To: axp-list@redhat.com Subject: Re: Floating point on alpha In-Reply-To: Your message of "Tue, 02 Jul 2002 14:10:58 +0200." <200207021410.58761.ineiti@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 02 Jul 2002 15:01:28 +0200 From: Christian Iseli 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.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: ineiti@gmx.net said: > I have a general question for alphas: from time to time when I try to > compile a program for my alpha (PC164), I run into problems with > doubles. For example > { > double a; > if ( a ){ > printf( "love\n" ); > } else { > printf( "peace\n" ); > } } Ah, well. If your whole point is avoid a crash, you can always try: #include static void myHandler(int i) { signal(i, myHandler); } And add this near the start of the main program: signal(SIGFPE, myHandler); But then again, it might be better to actually fix the code... Cheers, Christian