From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.ciao.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Compiling pdumper.c fails with gcc 4.7.2 Date: Wed, 23 Jan 2019 17:41:42 +0200 Message-ID: <83o9878jpl.fsf@gnu.org> References: <5C482F7E.1050805@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.org; posting-host="ciao.gmane.org:195.159.176.228"; logging-data="221949"; mail-complaints-to="usenet@ciao.gmane.org" Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 23 16:46:34 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmKjZ-000veC-Hm for ged-emacs-devel@m.gmane.org; Wed, 23 Jan 2019 16:46:33 +0100 Original-Received: from localhost ([127.0.0.1]:37115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmKjY-00082h-Gd for ged-emacs-devel@m.gmane.org; Wed, 23 Jan 2019 10:46:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmKf1-00061r-8x for emacs-devel@gnu.org; Wed, 23 Jan 2019 10:41:51 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmKf1-0004Sg-3L; Wed, 23 Jan 2019 10:41:51 -0500 Original-Received: from [176.228.60.248] (port=1542 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gmKf0-0004A1-OG; Wed, 23 Jan 2019 10:41:51 -0500 In-reply-to: <5C482F7E.1050805@gmx.at> (message from martin rudalics on Wed, 23 Jan 2019 10:10:22 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:232635 Archived-At: > Date: Wed, 23 Jan 2019 10:10:22 +0100 > From: martin rudalics > > With gcc 4.7.2 compiling pdumper.c fails thusly: > > CC pdumper.o > ../../src/pdumper.c: In function ‘emacs_offset’: > ../../src/pdumper.c:718:27: error: declaration of ‘emacs_ptr’ shadows a global declaration [-Werror=shadow] > ../../src/pdumper.c:710:1: error: shadowed declaration is here [-Werror=shadow] > ../../src/pdumper.c: In function ‘dump_emacs_reloc_copy_from_dump’: > ../../src/pdumper.c:1559:40: error: declaration of ‘emacs_ptr’ shadows a global declaration [-Werror=shadow] A hilarious GCC bug. > Is there any practicable way to fix this? I tried to fix it, please try the latest master.