From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: davidm@mostang.com (David Mosberger-Tang) Newsgroups: gmane.lisp.guile.devel Subject: bug in throw.c Date: Sun, 6 Apr 2003 17:01:36 -0700 (PDT) Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <20030407000136.0F81D8B7@panda.mostang.com> Reply-To: David.Mosberger@acm.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1049674263 2553 80.91.224.249 (7 Apr 2003 00:11:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 7 Apr 2003 00:11:03 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Apr 07 02:11:02 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 192KE2-0000f3-00 for ; Mon, 07 Apr 2003 02:11:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 192KEH-00064F-06 for guile-devel@m.gmane.org; Sun, 06 Apr 2003 20:11:17 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 192KDx-0005uW-00 for guile-devel@gnu.org; Sun, 06 Apr 2003 20:10:57 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 192KDt-0005my-00 for guile-devel@gnu.org; Sun, 06 Apr 2003 20:10:54 -0400 Original-Received: from adsl-66-127-195-58.dsl.snfc21.pacbell.net ([66.127.195.58] helo=panda.mostang.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 192KDs-0005ea-00 for guile-devel@gnu.org; Sun, 06 Apr 2003 20:10:52 -0400 Original-Received: by panda.mostang.com (Postfix, from userid 199) id 0F81D8B7; Sun, 6 Apr 2003 17:01:36 -0700 (PDT) Original-To: guile-devel@gnu.org X-URL: http://www.mostang.com/~davidm/ X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2141 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2141 Hi, Today I tried to build guile-1.6.3 on ia64 linux but it failed during the build when trying to use guile to generate some documentation. Subsequently, I tried the snapshot from April 4th and it had the same problem. The problem is quite obvious: in throw.c, we find: #if 0/*def __GNUC__*/ /* Dirk:FIXME:: This bugfix should be removed some time. */ /* GCC 2.95.2 has a bug in its optimizer that makes it generate incorrect code sometimes. This barrier stops it from being too clever. */ asm volatile ("" : "=g" (winds)); #endif This is clearly bogus: the asm statement claims that it's writing the "winds" variable, which isn't true. On ia64, this has the effect that the "winds" gets corrupted and comes out with value "1". Just disabling the workaround fixes the issue. Perhaps the workaround is legitimate for some platforms, but I suspect it should always be disabled for gcc v3.x or newer. --david --- libguile/throw.c~ Thu Mar 14 16:00:40 2002 +++ libguile/throw.c Sun Apr 6 16:56:58 2003 @@ -622,7 +622,7 @@ } } -#ifdef __GNUC__ +#if 0/*def __GNUC__*/ /* Dirk:FIXME:: This bugfix should be removed some time. */ /* GCC 2.95.2 has a bug in its optimizer that makes it generate incorrect code sometimes. This barrier stops it from being too _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel