From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miroslav Lichvar Newsgroups: gmane.lisp.guile.devel Subject: Re: guile 1.8 and x86_64 Date: Fri, 5 May 2006 16:05:34 +0200 Message-ID: <20060505140534.GA13293@bordell.redhat.usu> References: <3E76C952D0DE7C18F2E3A89F@cadabra-sw.stanford.edu> <87acatj19q.fsf@laas.fr> <87hd5111mz.fsf@ossau.uklinux.net> <8656DB86D246C1D9ACD84549@tribes2.stanford.edu> <87zmirvoew.fsf@ossau.uklinux.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="mP3DRpeJDSE+ciuQ" X-Trace: sea.gmane.org 1146838026 1643 80.91.229.2 (5 May 2006 14:07:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 May 2006 14:07:06 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri May 05 16:06:57 2006 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fc0xK-00016w-S2 for guile-devel@m.gmane.org; Fri, 05 May 2006 16:06:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fc0xK-0001zp-Ck for guile-devel@m.gmane.org; Fri, 05 May 2006 10:06:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fc0xG-0001zf-0h for guile-devel@gnu.org; Fri, 05 May 2006 10:06:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fc0x8-0001w1-BY for guile-devel@gnu.org; Fri, 05 May 2006 10:06:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fc0x8-0001vw-4j for guile-devel@gnu.org; Fri, 05 May 2006 10:06:42 -0400 Original-Received: from [66.187.233.31] (helo=mx1.redhat.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fc0wU-0002q3-FG for guile-devel@gnu.org; Fri, 05 May 2006 10:06:02 -0400 Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k45E5gWh031531 for ; Fri, 5 May 2006 10:05:42 -0400 Original-Received: from pobox.stuttgart.redhat.com (pobox.stuttgart.redhat.com [172.16.2.10]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k45E5aWg001060 for ; Fri, 5 May 2006 10:05:36 -0400 Original-Received: from dummy (vpn-4-24.stuttgart.redhat.com [10.32.4.24]) by pobox.stuttgart.redhat.com (8.12.8/8.12.8) with ESMTP id k45E5Zj2027338 for ; Fri, 5 May 2006 16:05:35 +0200 Original-To: guile-devel@gnu.org Content-Disposition: inline In-Reply-To: <87zmirvoew.fsf@ossau.uklinux.net> User-Agent: Mutt/1.4.2.1i X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:5904 Archived-At: --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, attached is a patch that seems to fix the problem with gcc4 and 64bit architectures. The scm_mark_locations function in gc-mark.c calls scm_gc_mark on everything located in one of the allocated segments. Shouldn't there be a check if the address is at least scm_t_cell aligned? Is it correct or is it just plain luck it works with the patch? Thanks, -- Miroslav Lichvar --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="gcmark.patch" --- libguile/gc-mark.c.orig 2006-02-12 14:29:12.000000000 +0100 +++ libguile/gc-mark.c 2006-05-05 14:41:07.000000000 +0200 @@ -433,6 +433,8 @@ for (m = 0; m < n; ++m) { SCM obj = * (SCM *) &x[m]; + if ((scm_t_bits)obj & (sizeof (scm_t_cell) - 1)) + continue; long int segment = scm_i_find_heap_segment_containing_object (obj); if (segment >= 0) scm_gc_mark (obj); --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel --mP3DRpeJDSE+ciuQ--