all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Shigeru Fukaya <shigeru.fukaya@gmail.com>
To: 18767@debbugs.gnu.org
Subject: bug#18767: 24.4; incorrect byte-compile on arithmatic comparisons
Date: Sun, 19 Oct 2014 04:58:31 +0900	[thread overview]
Message-ID: <4CCFEB0DE4728Cshigeru.fukaya@gmail.com> (raw)

Hello,

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

(disassemble (lambda () (< (a) (b) (c))))

byte code:
  args: nil
0	constant  a
1	call	  0
2	constant  b
3	call	  0
4	lss	  
5	goto-if-nil-else-pop 1
8	constant  b
9	call	  0
10	constant  c
11	call	  0
12	lss	  
13:1	return	  


Functions a, b, c should be called once respectively if the function
has possibility of side effect.
But b may be called twice, and c may not be called.


I'm sorry for late report at the very time of release, but I noticed
just now.

Regards,
Shigeru






             reply	other threads:[~2014-10-18 19:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-18 19:58 Shigeru Fukaya [this message]
     [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 ` bug#18767: 24.4; incorrect byte-compile on arithmatic comparisons Stefan Monnier
2014-10-22  9:16   ` 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

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

  git send-email \
    --in-reply-to=4CCFEB0DE4728Cshigeru.fukaya@gmail.com \
    --to=shigeru.fukaya@gmail.com \
    --cc=18767@debbugs.gnu.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.