From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1534) id 0B4003858011; Tue, 6 Sep 2022 08:11:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B4003858011 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662451874; bh=5d0gN5I2nNGrcusMNCS4M73D2vBHdb8fTxwpy1g8Mh0=; h=From:To:Subject:Date:From; b=LYes6VAegM7wr+y5q1nKVhRLO8eL76O1Ly6KtihlkPbfLNTjnkzRcRD40S4bogKe9 BWTBc8y+CS4QtkvLhx9oFKZ/9TfjjeSDABORvJgAfO+VY6iCp56S0G4FW7v9Nq1n93 1wvMLoMsyYRgbpF5nFpIoDpiT5F4Yu/3y4T3NO+s= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Tobias Burnus To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-2491] Fix Fortran/openmp: Partial OpenMP 5.2 doacross X-Act-Checkin: gcc X-Git-Author: Tobias Burnus X-Git-Refname: refs/heads/master X-Git-Oldrev: 0bd514107de7b0f643aa72554b3bdb5aeb5aa0f5 X-Git-Newrev: d6582c662ca0da05c74fa3183e1bc2cadcb21424 Message-Id: <20220906081114.0B4003858011@sourceware.org> Date: Tue, 6 Sep 2022 08:11:14 +0000 (GMT) List-Id: https://gcc.gnu.org/g:d6582c662ca0da05c74fa3183e1bc2cadcb21424 commit r13-2491-gd6582c662ca0da05c74fa3183e1bc2cadcb21424 Author: Tobias Burnus Date: Tue Sep 6 10:02:13 2022 +0200 Fix Fortran/openmp: Partial OpenMP 5.2 doacross This removed a checking snippet which accidentally was left in in commit r13-2446-g938cda536019cd6a1bc0dd2346381185b420bbf8 ; this caused fails in gfortran.dg/gomp/doacross-5.f90 (added in that very commit). Note that a similar but refined check is now done in the middle end. (The ME version additionally checks whether doacross is present.) gcc/fortran/ * openmp.cc (resolve_omp_clauses): Remove ordered/linear check as it is handled now in the middle end. Diff: --- gcc/fortran/openmp.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gcc/fortran/openmp.cc b/gcc/fortran/openmp.cc index 5142fd7c608..457e983663b 100644 --- a/gcc/fortran/openmp.cc +++ b/gcc/fortran/openmp.cc @@ -7625,10 +7625,6 @@ resolve_omp_clauses (gfc_code *code, gfc_omp_clauses *omp_clauses, linear_op = n->u.linear.op; } } - else if (omp_clauses->orderedc) - gfc_error ("LINEAR clause specified together with " - "ORDERED clause with argument at %L", - &n->where); else if (n->u.linear.op != OMP_LINEAR_REF && n->sym->ts.type != BT_INTEGER) gfc_error ("LINEAR variable %qs must be INTEGER "