From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.bugs Subject: bug#16535: Compiler bug ? Date: Sat, 25 Jan 2014 00:06:38 +0100 Message-ID: References: <52E2D595.10607@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1133ae003ff2e204f0bf6a01 X-Trace: ger.gmane.org 1390604891 10143 80.91.229.3 (24 Jan 2014 23:08:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jan 2014 23:08:11 +0000 (UTC) Cc: 16535@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 25 00:08: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 1W6prE-0007lN-0y for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Jan 2014 00:08:16 +0100 Original-Received: from localhost ([::1]:49203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6prD-0004pm-0v for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Jan 2014 18:08:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6pr5-0004pb-P4 for bug-gnu-emacs@gnu.org; Fri, 24 Jan 2014 18:08:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6pr1-0007Uy-0k for bug-gnu-emacs@gnu.org; Fri, 24 Jan 2014 18:08:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6pr0-0007Us-Tq for bug-gnu-emacs@gnu.org; Fri, 24 Jan 2014 18:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W6pr0-0007PY-Ec for bug-gnu-emacs@gnu.org; Fri, 24 Jan 2014 18:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Fabrice Popineau Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Jan 2014 23:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16535 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16535-submit@debbugs.gnu.org id=B16535.139060482328404 (code B ref 16535); Fri, 24 Jan 2014 23:08:02 +0000 Original-Received: (at 16535) by debbugs.gnu.org; 24 Jan 2014 23:07:03 +0000 Original-Received: from localhost ([127.0.0.1]:34960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W6pq2-0007O3-Od for submit@debbugs.gnu.org; Fri, 24 Jan 2014 18:07:03 -0500 Original-Received: from mail-ea0-f174.google.com ([209.85.215.174]:48480) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W6pq0-0007Nc-1e for 16535@debbugs.gnu.org; Fri, 24 Jan 2014 18:07:00 -0500 Original-Received: by mail-ea0-f174.google.com with SMTP id b10so1265939eae.19 for <16535@debbugs.gnu.org>; Fri, 24 Jan 2014 15:06:58 -0800 (PST) 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=8Yp4Ll15NgWbfCzTCY2vHJMpjZtJGDniMl5dy6JNOtQ=; b=zBb6PhndMiE2Kg9InLwXO5JHDeD4saGVhpE6n2+46kMkCMra9r8eXCYWeQm4z3+c1D N+1h0bCMjNQXOjUAPSbFw7DyNHlRGprJu+eFYOmkloClTyopf/xlYj6mMPSrZPLkkuNy GTKPSIjeFxZG5ZskDAzjDRN/Vo+sl2Mfn1FG0DzvDSgaJBEmjWlBSlfOjzr6nFJsiJAM xwVIUoV1vEKneRrLEJfvdRoi1HwFy+tVYabp1RXaCYxesmm3UkLGqVoke78vtAQIQkvI /zQtp5GNjyObifQWZwnmRRaSQchtRDnHAaaKykL6Xfx64jHx/qJqcXOjDGKqDysY230b QiAg== X-Received: by 10.14.113.199 with SMTP id a47mr15112669eeh.41.1390604818836; Fri, 24 Jan 2014 15:06:58 -0800 (PST) Original-Received: by 10.14.8.196 with HTTP; Fri, 24 Jan 2014 15:06:38 -0800 (PST) In-Reply-To: <52E2D595.10607@cs.ucla.edu> 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:83961 Archived-At: --001a1133ae003ff2e204f0bf6a01 Content-Type: text/plain; charset=ISO-8859-1 Actually, afaik BITS_PER_ULL == BITS_PER_BITS_WORD Starting program: C:\source\Gnu\emacs\mingw\src/emacs.exe -Q [New Thread 25544.0x113f4] Breakpoint 3, main (argc=2, argv=0xc04880) at emacs.c:702 702 { (gdb) p /d BITS_PER_ULL $1 = 64 (gdb) p /d BITS_PER_BITS_WORD $2 = 64 $ grep HAVE_UNSIGNED config.h #define HAVE_UNSIGNED_LONG_LONG_INT 1 I was at bzr116143. With your change, all the bit vector related the tests pass. Thanks, Fabrice 2014/1/24 Paul Eggert > There's an obvious bug there: a negated-comparison typo, which I fixed in > trunk bzr 116147. > > This raises another point. The bug was triggered because BITS_PER_ULL < > BITS_PER_BITS_WORD. The former should be the number of bits in 'unsigned > long long' (or 'unsigned long' on platforms that lack that), the latter the > number of bits in 'size_t'. I don't know of any platform where the former > is less than the latter, so I worry that there's a misconfiguration problem > here, which might cause some other subtle bugs on your platform. Can you > please give more details about your platform, and how you built Emacs, and > the values of BITS_PER_BITS_WORD, HAVE_UNSIGNED_LONG_LONG_INT, > BITS_PER_ULL, BITS_WORD_MAX, and ULL_MAX on your platform? GDB should be > able to tell you those values. Thanks. > --001a1133ae003ff2e204f0bf6a01 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Actually, afaik BITS_PER_ULL =3D=3D BITS_PER_BITS_WORD
Starting program: C:\source\Gnu\emacs\mingw\src/emacs.= exe -Q
[New Thread 25544.0x113f4]

Breakp= oint 3, main (argc=3D2, argv=3D0xc04880) at emacs.c:702
702 =A0 =A0 {
(gdb) p /d BITS_PER_ULL
$1 =3D 64
(gdb) p /d BITS_PER_BITS_WORD
$2 =3D 64

$ grep HAVE_UNSIGNED config.h
#define HAVE_UNS= IGNED_LONG_LONG_INT 1

I was at bzr116143.
With your change, a= ll the bit vector related the tests pass.

Thanks,<= /div>

Fabrice


2014/1/24 Paul Eggert <eggert@cs.ucla.edu&= gt;
There's an obvious bug there: a negated-comparison typo, which I fixed = in trunk bzr 116147.

This raises another point. The bug was triggered because BITS_PER_ULL < = BITS_PER_BITS_WORD. The former should be the number of bits in 'unsigne= d long long' (or 'unsigned long' on platforms that lack that), = the latter the number of bits in 'size_t'. I don't know of any = platform where the former is less than the latter, so I worry that there= 9;s a misconfiguration problem here, which might cause some other subtle bu= gs on your platform. Can you please give more details about your platform, = and how you built Emacs, and the values of BITS_PER_BITS_WORD, HAVE_UNSIGNE= D_LONG_LONG_INT, BITS_PER_ULL, BITS_WORD_MAX, and ULL_MAX on your platform?= GDB should be able to tell you those values. Thanks.

--001a1133ae003ff2e204f0bf6a01--