From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "N. Jackson" Newsgroups: gmane.emacs.devel Subject: pdumper.c Wstringop-overflow warnings with CFLAGS="-O3" [Re: Emacs 29.2 released] Date: Fri, 19 Jan 2024 01:40:31 +0000 Message-ID: <87a5p23xtc.fsf@moondust.localdomain> References: <83ttnaaojz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12728"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 19 07:32:23 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rQiQQ-00036W-3H for ged-emacs-devel@m.gmane-mx.org; Fri, 19 Jan 2024 07:32:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQiPU-00038B-Ld; Fri, 19 Jan 2024 01:31:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rQds7-0006Np-SD for emacs-devel@gnu.org; Thu, 18 Jan 2024 20:40:39 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rQds5-0004em-Cs for emacs-devel@gnu.org; Thu, 18 Jan 2024 20:40:39 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id B75A4240027 for ; Fri, 19 Jan 2024 02:40:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1705628433; bh=Uw7EBdDyOHuQBmnGob8DxL07+D2P3G43TK9g9SjkVuk=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=d9NxqfdvSQqQIHoiHkbGrEXI9qSqkJWnZh2NFaq0cfUdmZ8wKIQjBTlcLN0Es8MIF bQfvm7KYqfZGanb/wT0Lg7Ge72pYqoOS4/jwy2xECXQmkAlqnf1AmLMdN4Y+WBpsep nk+1WnjxqYc05lx8ffUIMGN11sMJ5MXG/lrLD+InGwogpu+5/EXmJxc9E0JzpTL5E8 Y7x+t+2KX6odPH4+jTjIJxaVK49vO2SA9SrPt22jdXTtrG4sj8Gl3CCxK++pfoqD/V VmXcuigfuPKzAhS4XKE0fWyFgRXeJMSh1fRsVIs/7MuqNUOTcSYq808wTLq8rAt+lR YpJTIba+PTwsw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TGMkn12Kyz6tvk for ; Fri, 19 Jan 2024 02:40:32 +0100 (CET) In-Reply-To: <83ttnaaojz.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 18 Jan 2024 13:06:24 +0200") Received-SPF: pass client-ip=185.67.36.65; envelope-from=njackson@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 19 Jan 2024 01:31:22 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:315103 Archived-At: At 13:06 +0200 on Thursday 2024-01-18, Eli Zaretskii wrote: > > Version 29.2 of Emacs, the extensible text editor, should now > be available Thank you Eli for your stalwart maintenance of Emacs and to everyone else who has contributed recently (and, indeed, ever). Building Emacs 29.2 with CFLAGS=3D"-O3" I get four Wstringop-overflow warnings in pdumper.c (see below). Can I (as an Emacs user) safely ignore these warnings? Note: I don't get these warnings with CFLAGS=3D"-O2". My version of gcc is: gcc (GCC) 13.2.1 20231011 (Red Hat 13.2.1-4) The four warnings are: In function =E2=80=98dump_field_lv_or_rawptr=E2=80=99, inlined from =E2=80=98dump_field_lv_rawptr=E2=80=99 at pdumper.c:1882= :3, inlined from =E2=80=98dump_field_finalizer_ref=E2=80=99 at pdumper.c:= 2205:5, inlined from =E2=80=98dump_field_finalizer_ref=E2=80=99 at pdumper.c:= 2197:1, inlined from =E2=80=98dump_finalizer=E2=80=99 at pdumper.c:2222:3: pdumper.c:1863:3: warning: writing 8 bytes into a region of size 0 [-Wstr= ingop-overflow=3D] 1863 | memcpy (out_field, &out_value, sizeof (out_value)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ and In function =E2=80=98cpyptr=E2=80=99, inlined from =E2=80=98dump_field_emacs_ptr=E2=80=99 at pdumper.c:1967= :3, inlined from =E2=80=98dump_field_emacs_ptr=E2=80=99 at pdumper.c:1949= :1, inlined from =E2=80=98dump_field_finalizer_ref=E2=80=99 at pdumper.c:= 2203:5, inlined from =E2=80=98dump_finalizer=E2=80=99 at pdumper.c:2222:3: pdumper.c:1774:3: warning: writing 8 bytes into a region of size 0 [-Wstr= ingop-overflow=3D] 1774 | memcpy (out, in, sizeof (void *)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ and In function =E2=80=98cpyptr=E2=80=99, inlined from =E2=80=98dump_field_emacs_ptr=E2=80=99 at pdumper.c:1967= :3, inlined from =E2=80=98dump_field_emacs_ptr=E2=80=99 at pdumper.c:1949= :1, inlined from =E2=80=98dump_field_finalizer_ref=E2=80=99 at pdumper.c:= 2203:5, inlined from =E2=80=98dump_finalizer=E2=80=99 at pdumper.c:2223:3: pdumper.c:1774:3: warning: writing 8 bytes into a region of size 0 [-Wstr= ingop-overflow=3D] 1774 | memcpy (out, in, sizeof (void *)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ and In function =E2=80=98dump_field_lv_or_rawptr=E2=80=99, inlined from =E2=80=98dump_field_lv_rawptr=E2=80=99 at pdumper.c:1882= :3, inlined from =E2=80=98dump_field_finalizer_ref=E2=80=99 at pdumper.c:= 2205:5, inlined from =E2=80=98dump_field_finalizer_ref=E2=80=99 at pdumper.c:= 2197:1, inlined from =E2=80=98dump_finalizer=E2=80=99 at pdumper.c:2223:3: pdumper.c:1863:3: warning: writing 8 bytes into a region of size 0 [-Wstr= ingop-overflow=3D] 1863 | memcpy (out_field, &out_value, sizeof (out_value)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Thanks. N.