GNU bug report logs - #18767
24.4; incorrect byte-compile on arithmatic comparisons

Previous Next

Package: emacs;

Reported by: Shigeru Fukaya <shigeru.fukaya <at> gmail.com>

Date: Sat, 18 Oct 2014 20:00:02 UTC

Severity: normal

Found in version 24.4

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Shigeru Fukaya <shigeru.fukaya <at> gmail.com>
Cc: 18767 <at> debbugs.gnu.org
Subject: bug#18767: 24.4; incorrect byte-compile on arithmatic comparisons
Date: Mon, 20 Oct 2014 17:42:56 -0400
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




This bug report was last modified 10 years and 292 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.