From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#5754: Bytecomp Arithmetic test failed Date: Sat, 03 Apr 2010 19:31:57 -0400 Message-ID: <877hoot8nm.fsf@stupidchicken.com> References: <87iq88ma6c.fsf@stupidchicken.com> <878w949lwp.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1270339012 19565 80.91.229.12 (3 Apr 2010 23:56:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 3 Apr 2010 23:56:52 +0000 (UTC) Cc: 5754@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 04 01:56:48 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NyDCo-0002dW-Kc for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Apr 2010 01:56:46 +0200 Original-Received: from localhost ([127.0.0.1]:35779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NyDCo-0002xr-8E for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Apr 2010 19:56:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NyDC9-0002lE-PW for bug-gnu-emacs@gnu.org; Sat, 03 Apr 2010 19:56:05 -0400 Original-Received: from [140.186.70.92] (port=33250 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NyDC7-0002k1-U7 for bug-gnu-emacs@gnu.org; Sat, 03 Apr 2010 19:56:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NyDC4-0000fS-IC for bug-gnu-emacs@gnu.org; Sat, 03 Apr 2010 19:56:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54528) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NyDC4-0000fN-F5 for bug-gnu-emacs@gnu.org; Sat, 03 Apr 2010 19:56:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NyCpq-000131-HH; Sat, 03 Apr 2010 19:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Apr 2010 23:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5754 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5754-submit@debbugs.gnu.org id=B5754.12703375234015 (code B ref 5754); Sat, 03 Apr 2010 23:33:02 +0000 Original-Received: (at 5754) by debbugs.gnu.org; 3 Apr 2010 23:32:03 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NyCot-00012i-GO for submit@debbugs.gnu.org; Sat, 03 Apr 2010 19:32:03 -0400 Original-Received: from pantheon-po38.its.yale.edu ([130.132.50.97]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NyCor-00012N-Qu for 5754@debbugs.gnu.org; Sat, 03 Apr 2010 19:32:02 -0400 Original-Received: from furry (173-14-147-246-NewEngland.hfc.comcastbusiness.net [173.14.147.246]) (authenticated bits=0) by pantheon-po38.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o33NVv8j027352 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 3 Apr 2010 19:31:58 -0400 Original-Received: by furry (Postfix, from userid 1000) id 9AA43C055; Sat, 3 Apr 2010 19:31:57 -0400 (EDT) In-Reply-To: <878w949lwp.fsf@mail.jurta.org> (Juri Linkov's message of "Sun, 04 Apr 2010 01:54:50 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.95 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 03 Apr 2010 19:33:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35909 Archived-At: Juri Linkov writes: > Does (let ((a (expt 2 -1074)) (b 0.125)) (* a b 8)) > return 5e-324 when you compile with CFLAGS="-g -O2"? With CFLAGS="-g -O2", (let ((a (expt 2 -1074)) (b 0.125)) (* a b 8)) => 5e-24 (eval '(let ((a (expt 2 -1074)) (b 0.125)) (* a 8 b))) => 5e-324 (funcall (byte-compile (list 'lambda nil (quote (let ((a (expt 2 -1074)) (b 0.125)) (* a 8 b)))))) => 5e-24 With CFLAGS="-g", (let ((a (expt 2 -1074)) (b 0.125)) (* a b 8)) => 0.0 (eval '(let ((a (expt 2 -1074)) (b 0.125)) (* a 8 b))) => 5e-324 (funcall (byte-compile (list 'lambda nil (quote (let ((a (expt 2 -1074)) (b 0.125)) (* a 8 b)))))) => 0.0 The latter two are what cause bytecomp-testsuite to fail.