From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4F7303858405; Mon, 27 Sep 2021 14:44:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F7303858405 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/102430] [9/10/11/12 Regression] ICE in fold_convert_loc, at fold-const.c:2554 since r7-4447-gb4c3a85be9658537 Date: Mon, 27 Sep 2021 14:44:02 +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: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: --- 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: Mon, 27 Sep 2021 14:44:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102430 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- The OMP_CLAUSE_LINEAR_ARRAY support is there only for simd constructs (and those are even simpler because we mostly punt on optimizing them by forcing= vf of 1). The above mentioned commit was the "Partial OpenMP 4.5 fortran support" pat= ch, which enabled linear clause on do but apparently didn't actually add support for array or allocatable linear. The support for linear on worksharing-loo= ps is done in omp-expand.c (in 3 places expand_omp_for_generic, expand_omp_for_static_nochunk, expand_omp_for_static_chunk) and needs to be added to those. Whether it can use omp_clause_linear_ctor langhook or not = is unclear (or whether it needs to be done somehow during omp-low.c instead of omp-expand.c). So, for release branches I think the best would be to sorry on OMP_CLAUSE_LINEAR_ARRAY clauses on OMP_FOR (e.g. in the FE).=