From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C3A64385B835; Sat, 11 Apr 2020 03:15:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C3A64385B835 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586574917; bh=0JatPlMlPubdEZ9+3YalcIWiyxTPxV/8oE8KCehQhJ8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=k/WKSYz0GvMEWH6FdNZ8AMZnVBFtHZx8dSsu2YquG/6MsbvLUI4mR1oC4jVM5xty+ AJVq9efHCSJPl4M5cofpD4GwiDxV4tIz74dNyKGA2D88HiSE0t+EYlz90G0tQM/XBq qds93la5MjrGogEdpXcJkCSHQm56PgiB+n/JfkCQ= 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: Sat, 11 Apr 2020 03:15:17 +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.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: Sat, 11 Apr 2020 03:15:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D89494 --- Comment #12 from Piotr Kubaj --- This issue can be fixed with the following patches: --- gcc/dumpfile.c.orig 2020-04-07 14:09:14 UTC +++ gcc/dumpfile.c @@ -2055,7 +2055,7 @@ temp_dump_context::temp_dump_context (bool forcibly_en bool forcibly_enable_dumping, dump_flags_t test_pp_flags) : m_context (), - m_saved (&dump_context ().get ()) + m_saved(&dump_context::get()) { dump_context::s_current =3D &m_context; if (forcibly_enable_optinfo) --- libgcc/config/rs6000/t-crtstuff.orig 2020-04-07 15:17:50 UTC +++ libgcc/config/rs6000/t-crtstuff @@ -3,4 +3,4 @@ # Do not build crtend.o with -Os as that can result in references to # out-of-line register save/restore functions, which may be unresolved # as crtend.o is linked after libgcc.a. See PR45053. -CRTSTUFF_T_CFLAGS =3D -msdata=3Dnone -O2 -fno-asynchronous-unwind-tables +CRTSTUFF_T_CFLAGS =3D -msdata=3Dnone -O0 -fno-asynchronous-unwind-tables --- Makefile.in.orig 2020-04-08 13:04:40 UTC +++ Makefile.in @@ -372,7 +372,7 @@ BUILD_PREFIX_1 =3D @BUILD_PREFIX_1@ # Flags to pass to stage2 and later makes. They are defined # here so that they can be overridden by Makefile fragments. -BOOT_CFLAGS=3D -g -O2 +BOOT_CFLAGS?=3D -g -O2 BOOT_LDFLAGS=3D BOOT_ADAFLAGS=3D -gnatpg And then you need to pass to configure and make the following env variables CFLAGS_FOR_TARGET=3D"-O0" CXXFLAGS_FOR_TARGET=3D"-O0" BOOT_CFLAGS=3D"-O0". The first patch is already sent by Gustavo Romero from IBM to GCC patches l= ist. GCC10 needs further fixing, unfortunately.=