From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luke Lee Newsgroups: gmane.emacs.bugs Subject: bug#17681: 24.3.91; "Arithmetic Error" in hide-ifdef mode when using shift operators Date: Fri, 6 Jun 2014 14:00:19 +0800 Message-ID: References: <87zjhtn6xq.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b2ede71ec77eb04fb249528 X-Trace: ger.gmane.org 1402035025 29723 80.91.229.3 (6 Jun 2014 06:10:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2014 06:10:25 +0000 (UTC) Cc: 17681@debbugs.gnu.org, David Engster To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 06 08:10:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WsnM0-0001rs-Ik for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jun 2014 08:10:16 +0200 Original-Received: from localhost ([::1]:45305 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsnM0-0006GN-3W for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jun 2014 02:10:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsnLs-0006DU-Ny for bug-gnu-emacs@gnu.org; Fri, 06 Jun 2014 02:10:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsnLo-0002Qv-EN for bug-gnu-emacs@gnu.org; Fri, 06 Jun 2014 02:10:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsnLo-0002Q5-B0 for bug-gnu-emacs@gnu.org; Fri, 06 Jun 2014 02:10:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WsnLn-0008KK-Iq for bug-gnu-emacs@gnu.org; Fri, 06 Jun 2014 02:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Luke Lee Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Jun 2014 06:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17681 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17681-submit@debbugs.gnu.org id=B17681.140203495831923 (code B ref 17681); Fri, 06 Jun 2014 06:10:03 +0000 Original-Received: (at 17681) by debbugs.gnu.org; 6 Jun 2014 06:09:18 +0000 Original-Received: from localhost ([127.0.0.1]:46400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsnL2-0008Io-CV for submit@debbugs.gnu.org; Fri, 06 Jun 2014 02:09:17 -0400 Original-Received: from mail-pb0-f54.google.com ([209.85.160.54]:46611) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsnD8-00081w-B8 for 17681@debbugs.gnu.org; Fri, 06 Jun 2014 02:01:08 -0400 Original-Received: by mail-pb0-f54.google.com with SMTP id jt11so2194580pbb.41 for <17681@debbugs.gnu.org>; Thu, 05 Jun 2014 23:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=eKQAoRdP0YQY2y5WayxaUG4Zxd13NFwza4/l6PbUsEQ=; b=rutA+K/BysFejIZHN5WDs4uJxTgIkzIIVV+rXKuwTXW1I3bFZKBF3xzpxr/qf5+3Ad oreZSoSrzBW9NzmEBb1PAwkpqql33kdFLmRXROfCE139Q/OaPZmJSJwbURw3UwHiy4KH wP8OaiYgeKPh8cn+fn+eE6wdReOGDvr9ZH3pQXmVloYq5mQjWLtI6jDNAuNZHftmxxBf S76a8tDM4ydhICBHteAkN5tEY6IlAoSrzTTUokAS2eNWe+0nyLT80z2lRzj3RK+39sP4 25Yaqpvxx40LXWorbUmRwrFH+c/y/x9o/rsnePjBwswDtP+VjxgJQMyBJ/bco/SC2NVQ 8v5Q== X-Received: by 10.68.222.196 with SMTP id qo4mr5332111pbc.14.1402034459537; Thu, 05 Jun 2014 23:00:59 -0700 (PDT) Original-Received: by 10.70.89.228 with HTTP; Thu, 5 Jun 2014 23:00:19 -0700 (PDT) In-Reply-To: X-Mailman-Approved-At: Fri, 06 Jun 2014 02:09:15 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:90100 Archived-At: --047d7b2ede71ec77eb04fb249528 Content-Type: text/plain; charset=UTF-8 >I think he already sent me a patch fixing this problem Yes, I think my new patch fixed that problem. However, if you're trying to hide jiffies.h it will eventually failed at some other place due to the "unsigned long" integer postfix (i.e. the "UL" in 100000UL), which hideif still consider it a "TODO". #define TICK_USEC ((1000000UL + USER_HZ/2) / USER_HZ) 2014-06-06 9:04 GMT+08:00 Stefan Monnier : > > Luke, could you take a look at this report please? > > > http://debbugs.gnu.org/17681 > > > An artificial but smaller example might be: > > > #if 1 / FOO > > #endif > > I think he already sent me a patch fixing this problem (which IIUC is > a problem I introduced, BTW). > > > Stefan > -- Best regards, Luke Lee --047d7b2ede71ec77eb04fb249528 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
>I think he already sent me a patch fixing th= is problem

Yes, I think my new patch fixed that problem. However, if= you're trying to hide
jiffies.h it will eventually failed at = some other place due to the "unsigned long"
integer postfix (i.e. the "UL" in 100000UL), which hideif still c= onsider it a "TODO".

#define TICK_USEC ((1000000UL + USER_= HZ/2) / USER_HZ)



2014-06-06 9:04 GMT+08:00 Stefan Monnier <monnier@iro.umontreal.ca<= /a>>:
> Luke, could you take a look at this report please?

>
http://debb= ugs.gnu.org/17681

> An artificial but smaller example might be:

> #if 1 / FOO
> #endif

I think he already sent me a patch fixing this problem (which IIUC is=
a problem I introduced, BTW).


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan



--
Best rega= rds,
Luke Lee

--047d7b2ede71ec77eb04fb249528--