From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6F6C8384A884; Wed, 15 Apr 2020 13:42:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F6C8384A884 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586958179; bh=SetVqesbkMIWvMKHCmdZTryp1u9CoKlTeaCMfZNNPDY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VA02+/8gxjOupsGgzWvmxlv2uwKV6IyaLPyV7/XmtNTa1jCExM764xCT4MMyvg3kL t7E7zxwT8lE6WSAWq4x5jbvoGBf7ZLs+zu0guYvuCRhN3jshjfg1TX41xyoH9TtG7A sy89uAUHkPaDvV6eT6T8aP3s+cWsg2nsSvHHin2g= From: "pkubaj at anongoth dot pl" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/89494] Bootstrap error when using GCC 4.2.1 Date: Wed, 15 Apr 2020 13:42:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 9.3.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: pkubaj at anongoth dot pl X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2020 13:42:59 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D89494 --- Comment #22 from Piotr Kubaj --- (In reply to CVS Commits from comment #21) > The master branch has been updated by Jakub Jelinek : >=20 > https://gcc.gnu.org/g:c00568f376078129196740d83946d54dc5437401 >=20 > commit r10-7736-gc00568f376078129196740d83946d54dc5437401 > Author: Gustavo Romero > Date: Wed Apr 15 15:14:45 2020 +0200 >=20 > selftest: Work around GCC 4.2 PR33916 bug by optimizing the ctor > [PR89494] >=20=20=20=20=20 > GCC 4.2 due to PR33916 miscompiles temp_dump_context ctor, because it > doesn't > zero initialize the whole dump_context temporary on which it runs the > static > get method and during destruction of the temporary an uninitialized > pointer > is deleted. >=20=20=20=20=20 > More recent GCC versions properly zero initialize it and ideally > optimize away > the construction/destruction of the temporary, as it isn't used for > anything, > but there is no reason to create the temporary, static member functio= ns > can > be called without an associated object. >=20=20=20=20=20 > 2020-04-15 Gustavo Romero >=20=20=20=20=20 > PR bootstrap/89494 > * dumpfile.c (selftest::temp_dump_context::temp_dump_context): > Don't construct a dump_context temporary to call static metho= d. Thanks for commiting this! Can you also merge to branch 9?=