unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Juri Linkov <juri@jurta.org>
Cc: 5754@debbugs.gnu.org
Subject: bug#5754: Bytecomp Arithmetic test failed
Date: Sat, 03 Apr 2010 19:31:57 -0400	[thread overview]
Message-ID: <877hoot8nm.fsf@stupidchicken.com> (raw)
In-Reply-To: <878w949lwp.fsf@mail.jurta.org> (Juri Linkov's message of "Sun, 04 Apr 2010 01:54:50 +0300")

Juri Linkov <juri@jurta.org> 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.






  reply	other threads:[~2010-04-03 23:31 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-23  7:47 bug#5754: Bytecomp Arithmetic test failed Juri Linkov
2010-03-23  8:38 ` Lennart Borgman
2010-03-23  9:03   ` Juri Linkov
2010-03-23 13:31     ` Lennart Borgman
2010-03-24 22:15       ` Chong Yidong
2010-03-24 22:52         ` Lennart Borgman
2010-03-25  1:15           ` Stefan Monnier
2010-03-25  1:19             ` Lennart Borgman
2010-03-25  7:19 ` Juri Linkov
2010-03-30 16:08   ` Juri Linkov
2010-04-03 22:18   ` Juri Linkov
2010-04-03 22:40 ` Chong Yidong
2010-04-03 22:54   ` Juri Linkov
2010-04-03 23:31     ` Chong Yidong [this message]
2010-04-04  6:25   ` Eli Zaretskii
2010-04-04  8:05   ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877hoot8nm.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=5754@debbugs.gnu.org \
    --cc=juri@jurta.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).