From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5D50D393FC26; Mon, 9 Mar 2020 18:15:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D50D393FC26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1583777713; bh=zgvtnefNtuo7KDnpRhPCcrV42m/gmqhesKNM6dzcMS0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=s3yNrmgzzoGx4DECmsuvG1kWpISTmDaDF9O/g3rDiTGlXc3TiiskMDOG0SAtdWTfP FkRKF9CPuf+iZOMnJqamDliu4rm4CTPjgcBCMOtaPEkI2fKMj8ry9T6MtM/fmUXSK7 TPpIYZyNO/z78AtSNKY9QG3gLT/AuON09Ciw7ekg= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/94042] [10 Regression] Bootstrap fails on ppc-linux-gnu Date: Mon, 09 Mar 2020 18:15:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: build, ice-on-valid-code, ra, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.0 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: Mon, 09 Mar 2020 18:15:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94042 --- Comment #40 from Martin Li=C5=A1ka --- (In reply to Segher Boessenkool from comment #36) > > > I did that (with /usr/bin/gcc etc. though, won't work at all otherwis= e), > > > but that builds stage2 as 64-bit? > >=20 > > Hm, that's possible. But the stage2 should not crash right? >=20 > It doesn't work, of course (mixed 32-bit and 64-bit thing). >=20 > And I need a 32-bit stage2 in any case, to have a compiler that miscompil= es > pt.c:tsubst_template_arg, to figure out why it thinks it as allowed to use > GPR0 somewhere it obviously is live. Ok, I've just run the build on gcc110 machine and you take a look at /tmp/build.log. You are right that, using CC=3D"gcc -m32" will cause that s= tage1 compiler is a cross from powerpc to powerpc64. The miscompiled compiler is stage2: $ file ./xgcc ./xgcc: ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, not stripped and it ICEs on a simple test-case: $ ./xgcc -B. /tmp/reduced.ii /tmp/reduced.ii: In substitution of =E2=80=98template, cla= ss> struct __enable_if [with bool =3D true; =3D _= Tp]=E2=80=99: /tmp/reduced.ii:5:24: required from here /tmp/reduced.ii:5:24: internal compiler error: Segmentation fault 5 | struct __enable_if | ^~~~~~~~~~~~~~~~~~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. $ cat /tmp/reduced.ii template struct __enable_if { }; template struct __enable_if { typedef _Tp __type; };=