From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Han-Wen Nienhuys Newsgroups: gmane.lisp.guile.devel Subject: Re: gcc optimisation breaks guile floating point Date: Thu, 29 Aug 2002 00:53:57 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <15725.21637.516981.623205@blauw.xs4all.nl> References: <200208272110.OAA20247@onyx.he.net> <15723.64888.759743.439428@blauw.xs4all.nl> <8765xuzq57.fsf@zagadka.ping.de> Reply-To: hanwen@cs.uu.nl NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1030574995 7509 127.0.0.1 (28 Aug 2002 22:49:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 28 Aug 2002 22:49:55 +0000 (UTC) Cc: Gary Houston , 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 17kBdH-0001we-00 for ; Thu, 29 Aug 2002 00:49:51 +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 17kBea-0002jC-00; Wed, 28 Aug 2002 18:51:12 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17kBe8-0002ga-00 for guile-devel@gnu.org; Wed, 28 Aug 2002 18:50:44 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17kBe6-0002gO-00 for guile-devel@gnu.org; Wed, 28 Aug 2002 18:50:44 -0400 Original-Received: from smtpzilla2.xs4all.nl ([194.109.127.138]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17kBe5-0002gJ-00 for guile-devel@gnu.org; Wed, 28 Aug 2002 18:50:42 -0400 Original-Received: from blauw.xs4all.nl (blauw.xs4all.nl [213.84.26.127]) by smtpzilla2.xs4all.nl (8.12.0/8.12.0) with ESMTP id g7SMobS9044295; Thu, 29 Aug 2002 00:50:37 +0200 (CEST) Original-To: Marius Vollmer In-Reply-To: <8765xuzq57.fsf@zagadka.ping.de> X-Mailer: VM 7.05 under Emacs 21.2.1 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:1182 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1182 mvo@zagadka.ping.de writes: > > This looks wierd as well, don't you think? well, yes, probably. > > *((unsigned long *) z) = 0; > > scm_remember ((SCM) z); > > *((double *) z) = x; > > return z; > > I like this better (with a suitable comment of course). In CVS. > I guess that the funny aliasing behaviour applies only to pointers to > floating point types, right? I wouldn't be sure. It could happen with all sorts of initializations, I guess, but I'm not familiar enough with the source code to see which ones. -- Han-Wen Nienhuys | hanwen@cs.uu.nl | http://www.cs.uu.nl/~hanwen _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel