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 54DB23EB69 for ; Tue, 2 Jul 2002 10:22:44 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g62EMhq09843 for axp-list@listman.redhat.com; Tue, 2 Jul 2002 10:22:43 -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 g62EMha09839 for ; Tue, 2 Jul 2002 10:22:43 -0400 Received: from server8a.software-ag.de (server8a.software-ag.de [193.26.193.47]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g62ECn922114 for ; Tue, 2 Jul 2002 10:12:49 -0400 Received: from sql.de by server8a.software-ag.de; (8.11.6/8.9.3) id g62EMfP14400; Tue, 2 Jul 2002 16:22:41 +0200 Message-ID: <3D21B730.839AEE2@sql.de> Date: Tue, 02 Jul 2002 16:22:40 +0200 From: Joerg Bruehe Organization: SQL Datenbanksysteme GmbH X-Mailer: Mozilla 4.7 [en] (WinNT; I) 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> <3D219DA0.EE8E97CE@uic.edu> <200207021603.09920.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: Hi! Linus Gasser wrote: > > Hi, > just had a look at the documentation, and found the following: > > >> > Like many static checkers, Splint detects instances where the value of a > location is used before it is defined. This analysis is done at the > procedural level. If there is a path through the procedure that uses a local > variable before it is defined, a use before definition error is reported. > The usedef flag controls use before definition checking. > << > > That means that if I call a function with a non-initialised double it won't be > detected. But it should. IMO, you mis-interpret the docu: Sure, "splint" will not detect that the current function was called with a non-initialised double, but it will (hopefully) detect that the current function _is_calling_ some other with a non-initialised double, and that is the point of error which needs to be corrected. > Hmm, I gotta try that gdb once again. Trouble is: if I run it on noteedit, it > crashes in a library (libnoteedit.so.1), and I don't get gdb to read the > symbol-table. OK, at least I get the function-name where it crashes, but not > the line. And always putting cout << x << endl; in the code to see where it > crashes is not my idea of debugging. Any better ideas? Check the point of calling, that is where the garbage parameter is given. HTH, Joerg Bruehe P.S.: And please, no top-post with full-quote in the future. -- Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany (speaking only for himself) mailto: joerg@sql.de