From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Shigeru Fukaya" Newsgroups: gmane.emacs.bugs Subject: bug#1334: 23.0.60; bug of bytecomp arithmetic operations Date: Fri, 21 Nov 2008 18:11:04 +0900 Message-ID: <69D13081CB3E4E4CA568C298914EE5AF@LX1> References: <874p29kioa.fsf@cyd.mit.edu> <87fxltlj0e.fsf@cyd.mit.edu><64bd60570811190427o6e9894c3mf3ce6d6e6d595a0b@mail.gmail.com> <87hc61a5nn.fsf@cyd.mit.edu> Reply-To: Shigeru Fukaya , 1334@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1227259840 982 80.91.229.12 (21 Nov 2008 09:30:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Nov 2008 09:30:40 +0000 (UTC) Cc: 1334@emacsbugs.donarmstrong.com To: "Chong Yidong" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 21 10:31:41 2008 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.50) id 1L3SMW-0006xj-DN for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Nov 2008 10:31:40 +0100 Original-Received: from localhost ([127.0.0.1]:41417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3SLN-000234-BY for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Nov 2008 04:30:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L3SLA-00021s-SX for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 04:30:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L3SL8-00020b-1u for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 04:30:15 -0500 Original-Received: from [199.232.76.173] (port=46280 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3SL7-00020M-23 for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 04:30:13 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60161) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L3SL7-0007dg-N8 for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 04:30:13 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAL9U92F013549; Fri, 21 Nov 2008 01:30:09 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mAL9K34s010507; Fri, 21 Nov 2008 01:20:03 -0800 X-Loop: don@donarmstrong.com Resent-From: "Shigeru Fukaya" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 21 Nov 2008 09:20:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1334 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1334-submit@emacsbugs.donarmstrong.com id=B1334.12272586729017 (code B ref 1334); Fri, 21 Nov 2008 09:20:03 +0000 Original-Received: (at 1334) by emacsbugs.donarmstrong.com; 21 Nov 2008 09:11:12 +0000 Original-Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.175]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAL9B9qp009009 for <1334@emacsbugs.donarmstrong.com>; Fri, 21 Nov 2008 01:11:10 -0800 Original-Received: by wf-out-1314.google.com with SMTP id 26so938884wfd.13 for <1334@emacsbugs.donarmstrong.com>; Fri, 21 Nov 2008 01:11:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:cc :references:in-reply-to:subject:date:mime-version:content-type :content-transfer-encoding:x-priority:x-msmail-priority:x-mailer :x-mimeole; bh=5sYEV+w2zZJAb82/DhBa4mNJxuR87V3W626TlpUotaw=; b=tlQiGKhlus+cdeUVS6ulPbEYlOvZkPn1e/dcezGb4cIQKfA4gvI9pjZqUW/03FWoJC 9+4Ljwys8IXTsB9yAT/Nik1Z63BvRhsRb4RIaPP+mHI4Ezqu1RZUUrmiabhgRJ4hOydS PgbpcGjYtkiWnUwVVJGYl6YPLF051gR1YaQUg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:cc:references:in-reply-to:subject:date :mime-version:content-type:content-transfer-encoding:x-priority :x-msmail-priority:x-mailer:x-mimeole; b=azu0b6b07WqPQ2eSubAwInjtPLTyUHR1rdmAAVboKpy9NgjFLyhrnhwd9AIKWUx1/S tJ26fNPS8Je5Q03/55fRBQIF4ow/HZ+IVdh0Gtid2Go96pUoZmIcpNX2Wq3hXF4Z1o0D 0P/fzHfbgfwNZGJatTvbsVtnPPVFGeULdumcw= Original-Received: by 10.142.251.9 with SMTP id y9mr164985wfh.181.1227258669384; Fri, 21 Nov 2008 01:11:09 -0800 (PST) Original-Received: from LX1 (122.36.138.58.dy.bbexcite.jp [58.138.36.122]) by mx.google.com with ESMTPS id 31sm2317876wff.3.2008.11.21.01.11.07 (version=SSLv3 cipher=RC4-MD5); Fri, 21 Nov 2008 01:11:08 -0800 (PST) In-Reply-To: <87hc61a5nn.fsf@cyd.mit.edu> X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6000.20661 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 21 Nov 2008 04:30:15 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:22549 Archived-At: Hi, Chong, > Shouldn't this be (nth 2 form) on the last line? Of course, you are right. I found I had tested with my older version. In `byte-regression-test', I should have remove the following line. (load "byte-opt-minimal") After above correction, log output contains three errors. (let ((a 3) (b 2) (c 1.0)) (- 0 a)) --> -3, NG --> 0 (let ((a 3) (b 2) (c 1.0)) (- 0 c)) --> -1.0, NG --> 0 (let ((a 3) (b 2) (c 1.0)) (- 0 a)) --> -3, NG --> 0 Thank you, - Shigeru ----- Original Message ----- From: "Chong Yidong" To: "Shigeru Fukaya" Cc: <1334@emacsbugs.donarmstrong.com> Sent: Friday, November 21, 2008 4:40 PM Subject: Re: 23.0.60; bug of bytecomp arithmetic operations > Thanks. I'm looking through your changes. > > ! ;; (- 0 x) --> (- x) > ! ((and (eq (nth 1 form) 0) (= (length form) 3)) > ! (setq form (list '- (nth 1 form)))) > > Shouldn't this be (nth 2 form) on the last line?