From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Suspicious warning in W64 build Date: Sun, 17 Sep 2017 17:29:20 +0300 Message-ID: <83d16pjt4v.fsf@gnu.org> References: <1017454172.910810.1504618695244@mail.libero.it> <83mv66z66p.fsf@gnu.org> <102a4c21-c275-c73e-ec53-0d85975dc968@cs.ucla.edu> <83a825znuf.fsf@gnu.org> <831snhzkgw.fsf@gnu.org> <837ex9x7vf.fsf@gnu.org> <83tw0cwcle.fsf@gnu.org> <83h8wcw3td.fsf@gnu.org> <83377vx3d0.fsf@gnu.org> <83ingnq01t.fsf@gnu.org> <83fubrpxsv.fsf@gnu.org> <83r2v9masw.fsf@gnu.org> <83d16smj5o.fsf@gnu.org> <9b9bfa40-a248-ed77-6522-53fe73e55434@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1505658567 10285 195.159.176.226 (17 Sep 2017 14:29:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 17 Sep 2017 14:29:27 +0000 (UTC) Cc: rcopley@gmail.com, fabrice.popineau@centralesupelec.fr, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 17 16:29:20 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtaZU-0002Q8-NP for ged-emacs-devel@m.gmane.org; Sun, 17 Sep 2017 16:29:20 +0200 Original-Received: from localhost ([::1]:60811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtaZc-0005I0-2c for ged-emacs-devel@m.gmane.org; Sun, 17 Sep 2017 10:29:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtaZP-0005GJ-2O for emacs-devel@gnu.org; Sun, 17 Sep 2017 10:29:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtaZK-0007Xl-Uw for emacs-devel@gnu.org; Sun, 17 Sep 2017 10:29:15 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtaZK-0007Xh-RS; Sun, 17 Sep 2017 10:29:10 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3237 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dtaZK-0000ty-6E; Sun, 17 Sep 2017 10:29:10 -0400 In-reply-to: <9b9bfa40-a248-ed77-6522-53fe73e55434@cs.ucla.edu> (message from Paul Eggert on Sat, 16 Sep 2017 23:40:05 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:218403 Archived-At: > Cc: fabrice.popineau@centralesupelec.fr, emacs-devel@gnu.org > From: Paul Eggert > Date: Sat, 16 Sep 2017 23:40:05 -0700 > > Eli Zaretskii wrote: > > Not sure what to do about this. Add 'volatile' to the declaration of > > 'c'? > > Looks like a GCC bug. To work around it, please try CACHEABLE instead of > volatile, to warn the reader that it's a compiler-bug workaround. Like this: > > struct handler *CACHEABLE c = handlerlist->nextfree; Richard, Fabrice -- could you try this, please? > > This seems to imply that m4/manywarnings.m4 has a bug: it somehow > > deduces that a 64-bit Windows build can only allocate up to LONG_MAX > > bytes. > > That is due to a limitation in AC_COMPUTE_INT: it can't handle numbers larger > than LONG_MAX. I attempted to work around this limitation by changing Gnulib to > assume that the correct value is 2**63 - 1 if it doesn't fit in 'long', and by > merging the latest Gnulib into the emacs-26 branch. Please give it a try. Did you forget to push this to the Emacs repository? Or am I blind? Thanks.