From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D418A3983C5E; Wed, 16 Sep 2020 19:20:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D418A3983C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1600284022; bh=NNCVqUIDHcrxGLe25H8cluAyUalKG2Tx35Ww0YCQVxc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LrHV39xGhLfg/f5ZWfnd5T+TFwOpQcIsUTn8D67pbo7EC1qxktg8kymPpb4kEZtrK aUtJSSiIb8dnDr7R2MjZbi9rxve4/RoZlv1tUjAfQN43QVZ3fIzczTFAaEPmHXulSg EBAH6DzxcDK9NZpY5tFXbmGJuUS36Lm7DN0c2lP0= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/89494] Bootstrap error when using GCC 4.2.1 Date: Wed, 16 Sep 2020 19:20:22 +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: 10.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org 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, 16 Sep 2020 19:20:22 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D89494 --- Comment #26 from CVS Commits --- The releases/gcc-9 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:489c62beef150f870d1755d3772bd2d0ce7344b4 commit r9-8878-g489c62beef150f870d1755d3772bd2d0ce7344b4 Author: Gustavo Romero Date: Wed Apr 15 15:14:45 2020 +0200 selftest: Work around GCC 4.2 PR33916 bug by optimizing the ctor [PR894= 94] 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 poi= nter is deleted. More recent GCC versions properly zero initialize it and ideally optimi= ze 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 functions= can be called without an associated object. 2020-04-15 Gustavo Romero PR bootstrap/89494 * dumpfile.c (selftest::temp_dump_context::temp_dump_context): Don't construct a dump_context temporary to call static method. (cherry picked from commit c00568f376078129196740d83946d54dc5437401)=