From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 982A4383F40F; Tue, 29 Jun 2021 15:35:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 982A4383F40F From: "stefansf at linux dot ibm.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/101260] New: Backport 27381e78925 to GCC 11 Date: Tue, 29 Jun 2021 15:35:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: stefansf at linux dot ibm.com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: 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: Tue, 29 Jun 2021 15:35:32 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101260 Bug ID: 101260 Summary: Backport 27381e78925 to GCC 11 Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: stefansf at linux dot ibm.com Target Milestone: --- Target: s390*-*-* struct a { unsigned b : 7; int c; int d; short e; } p, *q =3D &p; int f, g, h, i, r, s; static short j[8][1][6] =3D {}; char k[7]; short l, m; int *n; int **o =3D &n; void t() { for (; f;) ; } static struct a u(int x) { struct a a =3D {4, 8, 5, 4}; for (; i <=3D 6; i++) { struct a v =3D {}; for (; l; l++) h =3D 0; for (; h >=3D 0; h--) { j[i]; struct a *w =3D &p; s =3D 0; for (; s < 3; s++) { r ^=3D x; m =3D j[i][g][h] =3D=3D (k[g] =3D g); *w =3D v; } r =3D 2; for (; r; r--) *o =3D &r; } } t(); return a; } int main() { *q =3D u(636); if (p.b !=3D 4) __builtin_abort (); } The reduced example runs fine if compiled with mainline (currently 53fd7544= aff) whereas it fails if compiled with GCC 11 (currently f6306457ee3). The examp= le runs fine with GCC 11, too, if commit d1d01a66012a93cc8cb7dafbe1b5ec453ec96= b59 is cherry picked. Can we backport this one?=