From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.devel Subject: Re: Suspicious warning in W64 build Date: Fri, 15 Sep 2017 23:02:45 +0200 Message-ID: References: <1017454172.910810.1504618695244@mail.libero.it> <1146932094.13821.1504798935795@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> <86a81xrndl.fsf@gmail.com> <83a81wmijy.fsf@gnu.org> <83vakkklto.fsf@gnu.org> <83poarlrcj.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c0426f82b7f83055940b87f" X-Trace: blaine.gmane.org 1505509413 28116 195.159.176.226 (15 Sep 2017 21:03:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 15 Sep 2017 21:03:33 +0000 (UTC) Cc: Andy Moreton , Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 15 23:03:29 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 1dsxlk-00075J-K9 for ged-emacs-devel@m.gmane.org; Fri, 15 Sep 2017 23:03:24 +0200 Original-Received: from localhost ([::1]:54983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsxlr-0007tX-Le for ged-emacs-devel@m.gmane.org; Fri, 15 Sep 2017 17:03:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsxlc-0007r9-Cj for emacs-devel@gnu.org; Fri, 15 Sep 2017 17:03:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsxlb-0004P0-88 for emacs-devel@gnu.org; Fri, 15 Sep 2017 17:03:16 -0400 Original-Received: from smtp2.supelec.fr ([160.228.120.31]:47091) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsxlV-0004LM-Ej; Fri, 15 Sep 2017 17:03:09 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by smtp2.supelec.fr (Postfix) with ESMTP id CCE64804CD; Fri, 15 Sep 2017 23:03:07 +0200 (CEST) X-Virus-Scanned: amavisd-new at smtp2.supelec.fr Original-Received: from smtp2.supelec.fr ([127.0.0.1]) by localhost (smtp2.supelec.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TmnSQutD6Y68; Fri, 15 Sep 2017 23:03:07 +0200 (CEST) Original-Received: from mail-qk0-f179.google.com (mail-qk0-f179.google.com [209.85.220.179]) by smtp2.supelec.fr (Postfix) with ESMTPSA id 3864D804D6; Fri, 15 Sep 2017 23:03:07 +0200 (CEST) Original-Received: by mail-qk0-f179.google.com with SMTP id z143so3170947qkb.3; Fri, 15 Sep 2017 14:03:07 -0700 (PDT) X-Gm-Message-State: AHPjjUh8nqwMkUBOMzKziZlwAQSzbTK2AsNknrJW+BWIee/ZMoYSlNP4 6FRE+x37Q5OZyvJSPRtDXwhRwIdTH654h3SjM9I= X-Google-Smtp-Source: AOwi7QCLWaSdNsXxQfvzQzC5TKkXtSYgEdQ5lwh8moEh+XPS+VqVNueSrzd+Kt7Jj81WqSsiSYeNf9+7d2LIEwlZ1Iw= X-Received: by 10.233.216.135 with SMTP id u129mr9842046qkf.302.1505509386187; Fri, 15 Sep 2017 14:03:06 -0700 (PDT) Original-Received: by 10.140.82.21 with HTTP; Fri, 15 Sep 2017 14:02:45 -0700 (PDT) In-Reply-To: <83poarlrcj.fsf@gnu.org> X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 160.228.120.31 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:218337 Archived-At: --94eb2c0426f82b7f83055940b87f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Remaining warnings : - indent.c:scan_for_column() -> you reported it - search.c:Freplace_match() ../../emacs/src/search.c: In function 'Freplace_match': ../../emacs/src/search.c:2621:15: warning: argument 1 value '2305843009213693951' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=3D] substed =3D xmalloc (substed_alloc_size); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../../emacs/src/search.c:24:0: ../../emacs/src/lisp.h:4440:14: note: in a call to allocation function 'xmalloc' declared here extern void *xmalloc (size_t) ATTRIBUTE_MALLOC_SIZE ((1)); ^~~~~~~ - data.c: ../../emacs/src/data.c: In function 'minmax_driver': ../../emacs/src/data.c:3022:9: warning: 'accum.i' may be used uninitialized in this function [-Wmaybe-uninitialized] return accum; ^~~~~ - eval.c ../../emacs/src/eval.c: In function 'internal_catch': ../../emacs/src/eval.c:1431:19: warning: variable 'c' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] struct handler *c =3D handlerlist->nextfree; ^ ../../emacs/src/eval.c: In function 'internal_condition_case': ../../emacs/src/eval.c:1431:19: warning: variable 'c' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] ../../emacs/src/eval.c: In function 'internal_condition_case_1': ../../emacs/src/eval.c:1431:19: warning: variable 'c' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] ../../emacs/src/eval.c: In function 'internal_condition_case_2': ../../emacs/src/eval.c:1431:19: warning: variable 'c' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] ../../emacs/src/eval.c: In function 'internal_condition_case_n': ../../emacs/src/eval.c:1431:19: warning: variable 'c' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] ../../emacs/src/eval.c: In function 'internal_catch.constprop': ../../emacs/src/eval.c:1431:19: warning: variable 'c' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] - w32.c ../../emacs/src/w32.c:7551:1: warning: no previous prototype for 'sys_strerror' [-Wmissing-prototypes] sys_strerror (int error_no) ^~~~~~~~~~~~ Fabrice 2017-09-15 21:00 GMT+02:00 Eli Zaretskii : > > From: Fabrice Popineau > > Date: Fri, 15 Sep 2017 20:15:24 +0200 > > Cc: Andy Moreton , Emacs developers < > emacs-devel@gnu.org> > > > > Does eassume instead of eassert help? > > > > It seems to do it. > > Thanks, pushed. > --=20 Fabrice Popineau ----------------------------- CentraleSupelec D=C3=A9partement Informatique 3, rue Joliot Curie 91192 Gif/Yvette Cedex Tel direct : +33 (0) 169851950 Standard : +33 (0) 169851212 ------------------------------ --94eb2c0426f82b7f83055940b87f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Remaining warnings :

- indent.c:scan_fo= r_column() -> you reported it

- search.c:Frepla= ce_match()

../../emacs/src/search.c: In funct= ion 'Freplace_match':
../../emacs/src/search.c:2621:15: w= arning: argument 1 value '2305843009213693951' exceeds maximum obje= ct size 2147483647 [-Walloc-size-larger-than=3D]
=C2=A0 =C2=A0 = =C2=A0 =C2=A0substed =3D xmalloc (substed_alloc_size);
=C2=A0 =C2= =A0 =C2=A0 =C2=A0~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file i= ncluded from ../../emacs/src/search.c:24:0:
../../emacs/src/lisp.= h:4440:14: note: in a call to allocation function 'xmalloc' declare= d here
=C2=A0extern void *xmalloc (size_t) ATTRIBUTE_MALLOC_SIZE = ((1));
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~~

- data.c:

../..= /emacs/src/data.c: In function 'minmax_driver':
../../ema= cs/src/data.c:3022:9: warning: 'accum.i' may be used uninitialized = in this function [-Wmaybe-uninitialized]
=C2=A0 return accum;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~

- eval.c

../../emacs/src/eval.c: In functi= on 'internal_catch':
../../emacs/src/eval.c:1431:19: = warning: variable 'c' might be clobbered by 'longjmp' or &#= 39;vfork' [-Wclobbered]
=C2=A0 =C2=A0struct handler *c =3D ha= ndlerlist->nextfree;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0^
../../emacs/src/eval.c: In function= 'internal_condition_case':
../../emacs/src/eval.c:1431:1= 9: warning: variable 'c' might be clobbered by 'longjmp' or= 'vfork' [-Wclobbered]
../../emacs/src/eval.c: In functio= n 'internal_condition_case_1':
../../emacs/src/eval.c:143= 1:19: warning: variable 'c' might be clobbered by 'longjmp'= or 'vfork' [-Wclobbered]
../../emacs/src/eval.c: In func= tion 'internal_condition_case_2':
../../emacs/src/eval.c:= 1431:19: warning: variable 'c' might be clobbered by 'longjmp&#= 39; or 'vfork' [-Wclobbered]
../../emacs/src/eval.c: In f= unction 'internal_condition_case_n':
../../emacs/src/eval= .c:1431:19: warning: variable 'c' might be clobbered by 'longjm= p' or 'vfork' [-Wclobbered]
../../emacs/src/eval.c: I= n function 'internal_catch.constprop':
../../emacs/src/ev= al.c:1431:19: warning: variable 'c' might be clobbered by 'long= jmp' or 'vfork' [-Wclobbered]

- = w32.c

../../emacs/src/w32.c:7551:1: warning: = no previous prototype for 'sys_strerror' [-Wmissing-prototypes]
=C2=A0sys_strerror (int error_no)
=C2=A0^~~~~~~~~~~~
=

Fabrice


2017-09-15 21:00 GMT+02:00 Eli Z= aretskii <eliz@gnu.org>:
> F= rom: Fabrice Popineau <fabrice.popineau@centralesupelec.fr>
> Date: Fri, 15 Sep 2017 20:15:24 +0200
> Cc: Andy Moreton <andrewjmoreton@gmail.com>, Emacs developers <emacs-devel@gnu.org>
>
>=C2=A0 Does eassume instead of eassert help? >
> It seems to do it.

Thanks, pushed.



--
Fabrice Popineau
-----------------------------
CentraleSupelec
D=C3=A9partement Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
------------------------------
=
--94eb2c0426f82b7f83055940b87f--