From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: gcc optimisation breaks guile floating point Date: 03 Oct 2002 00:40:24 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <87bs6czcpz.fsf@zagadka.ping.de> References: <200208272110.OAA20247@onyx.he.net> <15723.64888.759743.439428@blauw.xs4all.nl> <8765xuzq57.fsf@zagadka.ping.de> <15725.21637.516981.623205@blauw.xs4all.nl> <200208301751.KAA21818@onyx.he.net> <15735.51280.569410.22724@blauw.xs4all.nl> <200209242233.PAA04201@onyx.he.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1033712493 32710 127.0.0.1 (4 Oct 2002 06:21:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 4 Oct 2002 06:21:33 +0000 (UTC) Cc: cwitty@newtonlabs.com, hanwen@cs.uu.nl, guile-devel@gnu.org 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 17xLq5-0008VJ-00 for ; Fri, 04 Oct 2002 08:21:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17xLg6-00019X-00; Fri, 04 Oct 2002 02:11:10 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17wsAR-00040E-00 for guile-devel@gnu.org; Wed, 02 Oct 2002 18:40:31 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17wsAP-0003zx-00 for guile-devel@gnu.org; Wed, 02 Oct 2002 18:40:30 -0400 Original-Received: from dialin.speedway42.dip206.dokom.de ([195.138.42.206] helo=zagadka.ping.de) by monty-python.gnu.org with smtp (Exim 4.10) id 17wsAO-0003zs-00 for guile-devel@gnu.org; Wed, 02 Oct 2002 18:40:28 -0400 Original-Received: (qmail 9230 invoked by uid 1000); 2 Oct 2002 22:40:25 -0000 Original-To: Gary Houston In-Reply-To: <200209242233.PAA04201@onyx.he.net> Original-Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:1420 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1420 Gary Houston writes: > > Under gcc, the following statement: > > > > asm volatile ("" : : : "memory"); > > > > [...] > > This is good, it's similar to a previous work-around in libguile/throw.c. I haven't checked with the standard, but it might be the case that a compiler must assume that a pointer to char can alias any type. Thus, #define SCM_REAL_VALUE(x) (((scm_t_double *)((char *)SCM2PTR (x)))->real) might work as well. -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel