From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F3EAB385840C; Wed, 17 Nov 2021 19:26:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F3EAB385840C From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103226] [12 Regression] Recent change to copy-headers causes execution failure for gcc.dg/torture/pr80974 Date: Wed, 17 Nov 2021 19:26:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.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: Wed, 17 Nov 2021 19:26:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103226 --- Comment #17 from Aldy Hernandez --- The .s files on my cross versus the AWS instance or not even remotely the s= ame: --- j.s 2021-11-17 14:13:19.979883609 -0500 +++ j.s.bad 2021-11-17 14:13:12.083828127 -0500 @@ -5,79 +5,78 @@ .global _main; .type _main, STT_FUNC; _main: - P2.H =3D _b; - [--sp] =3D ( r7:7, p5:3 ); + [--sp] =3D ( p5:3 ); + P2.H =3D _b; + [--SP] =3D FP; P2.L =3D _b; - R2 =3D [P2]; - P1.H =3D _a; - cc =3DR2=3D=3D0; - P1.L =3D _a; + R0 =3D [P2]; + P0.H =3D _a; + cc =3DR0=3D=3D0; + P0.L =3D _a; if !cc jump .L2; - P4.H =3D _f; - P3.H =3D _e; - P5.H =3D _d; - P4.L =3D _f; etc etc. Except for the --with-newlib, the GCC configure lines look similar: Configured with: /home/aldyh/src/gcc/configure --target=3Dbfin-elf --enable-languages=3Dc --with-newlib --prefix=3D/home/aldyh/bld/bfin/instal= l/ Configured with: /home/jenkins/gcc/configure --prefix=3D/home/jenkins/insta= lled --target=3Dbfin-elf Is there some sort of default -mcpu flag that is different? Anywhoo...I'll continue working on this tomorrow since copying the AWS .s f= ile and compiling it on my cross also exhibits the broken behavior... so there's clearly something there.=