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 1A0443F411 for ; Tue, 2 Jul 2002 08:31:52 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g62CVpQ14948 for axp-list@listman.redhat.com; Tue, 2 Jul 2002 08:31:51 -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 g62CVpa14944 for ; Tue, 2 Jul 2002 08:31:51 -0400 Received: from outboundx.mv.meer.net (outboundx.mv.meer.net [209.157.152.12]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g62CLv906177 for ; Tue, 2 Jul 2002 08:21:57 -0400 Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by outboundx.mv.meer.net (8.11.6/8.11.6) with ESMTP id g62CVfC62973 for ; Tue, 2 Jul 2002 05:31:41 -0700 (PDT) (envelope-from trainor@uic.edu) Received: from uic.edu (12-249-71-141.client.attbi.com [12.249.71.141]) by mail.meer.net (8.12.2/8.12.1/meer) with ESMTP id g62CVnpb035789 for ; Tue, 2 Jul 2002 05:31:49 -0700 (PDT) Message-ID: <3D219DA0.EE8E97CE@uic.edu> Date: Tue, 02 Jul 2002 07:33:36 -0500 From: Doug Trainor Organization: Morpheus: "Wild, isn't it?" X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Floating point on alpha References: <200207021410.58761.ineiti@gmx.net> 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.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: Just because the other kids do it doesn't mean you have to. You could run Splint... [or something like the old UNIX lint(1)] http://lclint.cs.virginia.edu/ http://sourceforge.net/projects/lclint/ etc Linus Gasser wrote: > Hi all, > 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" ); > } > } > > seems to run w/o problems on an i386 and produces "peace" as output. Now, on > an alpha (can't test it right now, but try it out and tell me), it segfaults, > cause 'a' is not defined. Seems logical to me. But as it runs on i386, lots > of programs have this kind of logic (gnome-print had it, breakout2 had it, > scribus had it, noteedit has it (note the had/has and try to figure out which > program I'd like to run on my alpha ;-) ). > Now my question: is it possible to remove this behaviour with a good > compiler-switch? Because going over these programs, searching for > non-initialised doubles gets on my nerves. OK, I should, as it is really bad > programming, and I could contribute like this (and did sometimes). But > still... Any hints? > > Ineiti > > PS: if this 'magic' compiler switch doesn't exist, I have a question about gdb > with libraries and how to use the '-g' switch in this case. Just to find > those #@$%-variables... > > _______________________________________________ > Axp-list mailing list > Axp-list@redhat.com > https://listman.redhat.com/mailman/listinfo/axp-list