unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Shigeru Fukaya <shigeru.fukaya@gmail.com>
Cc: 18767@debbugs.gnu.org
Subject: bug#18767: 24.4; incorrect byte-compile on arithmatic comparisons
Date: Mon, 20 Oct 2014 17:42:56 -0400	[thread overview]
Message-ID: <jwvoat65sk0.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <4CCFEB0DE4728Cshigeru.fukaya@gmail.com> (Shigeru Fukaya's message of "Sun, 19 Oct 2014 04:58:31 +0900")

Version:24.5

> byte-compile of arithmatic comparison operators on more than two
> arguments is incorrect.

Indeed, I was not very awake when I committed that code.  I just
reverted the change so the byte-compiler simply doesn't optimize this case.
To do any better, I think we'll have to do something like:

loop over all args, doing "byte-compile-form" + "dup", and then apply
the comparisons backward, combining them with "and".


        Stefan





  parent reply	other threads:[~2014-10-20 21:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-18 19:58 bug#18767: 24.4; incorrect byte-compile on arithmatic comparisons Shigeru Fukaya
     [not found] ` <handler.18767.B.141366235315401.ack@debbugs.gnu.org>
2014-10-19 10:20   ` bug#18767: Acknowledgement (24.4; incorrect byte-compile on arithmatic comparisons) Shigeru Fukaya
2014-10-20 21:42 ` Stefan Monnier [this message]
2014-10-22  9:16   ` bug#18767: 24.4; incorrect byte-compile on arithmatic comparisons Shigeru Fukaya
2014-10-22 13:39     ` Stefan Monnier
2014-10-22 16:26       ` Shigeru Fukaya
2014-10-22 17:39         ` Stefan Monnier
2014-10-22 17:58       ` Glenn Morris

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=jwvoat65sk0.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=18767@debbugs.gnu.org \
    --cc=shigeru.fukaya@gmail.com \
    /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).