From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B473C3858439; Wed, 15 Sep 2021 10:27:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B473C3858439 From: "tschwinge at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/102330] [12 Regression] ICE in expand_gimple_stmt_1, at cfgexpand.c:3932 since r12-1139-gf6bf436d9ab907d0 Date: Wed, 15 Sep 2021 10:27:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: openacc, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: tschwinge at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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, 15 Sep 2021 10:27:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102330 Thomas Schwinge changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jules at gcc dot gnu.org, | |tschwinge at gcc dot gnu.o= rg --- Comment #5 from Thomas Schwinge --- (In reply to Jakub Jelinek from comment #4) > Just > program p > !$omp taskloop lastprivate(i) > do i =3D 1, 8 > end do > !$acc parallel loop > do i =3D 1, 8 > end do > end > is enough to reproduce it. Confirmed. With '-fopt-info-omp-all --param=3Dopenacc-privatization=3Dnoisy' we're tol= d: 'note: variable =E2=80=98i=E2=80=99 in =E2=80=98private=E2=80=99 clause is = candidate for adjusting OpenACC privatization level', and... (In reply to Richard Biener from comment #1) > Confirmed. omp expansion seems to introudce this non-gimple code and lik= ely > also makes 'i' not a register (for OACC): >=20 > .data_dep.5D.4044 =3D .UNIQUE (OACC_PRIVATE, .data_dep.5D.4044, -1, > &iD.4045); >=20 > but >=20 > iD.4045 =3D 1 + .offset.9D.4049; >=20 > and >=20 > iD.4045 =3D 1 + 8; >=20 > (which is also unfolded) ... indeed the ICE goes away if I force-disable 'OACC_PRIVATE' commit 29a2f51806c5b30e17a8d0e9ba7915a3c53c34ff "openacc: Add support for gang loc= al storage allocation in shared memory [PR90115]" as follows: --- gcc/omp-low.c +++ gcc/omp-low.c @@ -10494,6 +10494,8 @@ static bool oacc_privatization_candidate_p (const location_t loc, const tree c, const tree decl) { + return false; Hmm. Julian CCed.=