From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 22B773857C45; Wed, 13 Mar 2024 08:58:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 22B773857C45 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710320336; bh=TShLHwlarAHIlROoQYeEYBB6Ns93K40IvFfc7MSVupk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=P5jAi45Y8xsCRmJJ1bfVYF+2X3Kqvu2UrYo/ZHTQcDDd/RuZWRESu7FY/bUU6qckS AXUD7cOa56lXyS2oO3jjUO7PVQOAam6pO2rMUPYcYJYY+yOgAbCZrcVV7AoLFIr2hi 6WlNfDBsUDXQpctxulD7UaFTzcdRz5XdNTwoHZqI= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/114283] [OpenMP] Dummy procedures/proc pointers and 'defaultmap', 'default', 'firstprivate' etc. Date: Wed, 13 Mar 2024 08:58:54 +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: 14.0 X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114283 --- Comment #1 from GCC Commits --- The master branch has been updated by Tobias Burnus : https://gcc.gnu.org/g:c5037fcee2de438774466e78e46e6ab4df72a7fe commit r14-9446-gc5037fcee2de438774466e78e46e6ab4df72a7fe Author: Tobias Burnus Date: Wed Mar 13 09:35:28 2024 +0100 OpenMP/Fortran: Fix defaultmap(none) issue with dummy procedures [PR114= 283] Dummy procedures look similar to variables but aren't - neither in Fort= ran nor in OpenMP. As the middle end sees PARM_DECLs, mark them as predetermined firstprivate for mapping (as already done in gfc_omp_predetermined_sharing). This does not address the isses related to procedure pointers, which are still discussed on spec level [see PR]. PR fortran/114283 gcc/fortran/ChangeLog: * trans-openmp.cc (gfc_omp_predetermined_mapping): Map dummy procedures as firstprivate. libgomp/ChangeLog: * testsuite/libgomp.fortran/declare-target-indirect-4.f90: New test.=