From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.devel Subject: Re: bug in throw.c Date: Thu, 10 Apr 2003 22:24:56 -0500 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87fzopk96f.fsf@raven.i.defaultvalue.org> References: <20030407000136.0F81D8B7@panda.mostang.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050031560 5842 80.91.224.249 (11 Apr 2003 03:26:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 11 Apr 2003 03:26:00 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Apr 11 05:25:58 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 193pAs-0001W5-00 for ; Fri, 11 Apr 2003 05:25:58 +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 193pBD-0000ZY-00 for guile-devel@m.gmane.org; Thu, 10 Apr 2003 23:26:19 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 193pAQ-0008UB-00 for guile-devel@gnu.org; Thu, 10 Apr 2003 23:25:30 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 193pA3-00085o-00 for guile-devel@gnu.org; Thu, 10 Apr 2003 23:25:07 -0400 Original-Received: from dsl093-098-016.wdc1.dsl.speakeasy.net ([66.93.98.16] helo=defaultvalue.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 193p9v-0007sl-00 for guile-devel@gnu.org; Thu, 10 Apr 2003 23:24:59 -0400 Original-Received: from raven.i.defaultvalue.org (raven.i.defaultvalue.org [192.168.1.7]) by defaultvalue.org (Postfix) with ESMTP id 15E7DE4B; Thu, 10 Apr 2003 22:24:57 -0500 (CDT) Original-Received: by raven.i.defaultvalue.org (Postfix, from userid 1000) id E5F1C2150F5; Thu, 10 Apr 2003 22:24:56 -0500 (CDT) Original-To: David.Mosberger@acm.org In-Reply-To: <20030407000136.0F81D8B7@panda.mostang.com> (davidm@mostang.com's message of "Sun, 6 Apr 2003 17:01:36 -0700 (PDT)") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) 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:2151 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2151 davidm@mostang.com (David Mosberger-Tang) writes: > 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. Interesting. I tracked down the same problem, but thought it was because the optimizer was being clever with some other code that was using macros to mess with object internals, and inadvertently hiding the top-level object from the GC. I fixed it by adding a scm_remember_upto_here_1 (winds) just after the abort (), but your explanation makes sense. So if we remove the asm, do we know if we still need a scm_remember_upto_here_1 (winds) to fix the problem Dirk was initially addressing (and would that fix it)? -- Rob Browning rlb @defaultvalue.org, @linuxdevel.com, and @debian.org Previously @cs.utexas.edu GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel