From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4637C3858C29; Wed, 17 Jan 2024 08:57:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4637C3858C29 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705481858; bh=EHlnzrU1Mfc/jJrdxNlLMqRtFBD0EtD0Wr+IVAHGq0Y=; h=From:To:Subject:Date:From; b=KRRkjWUsiM2vSrFpH0gcxoYeMHb7MkegTBTaQwwDuhb9T2KIPXDKDrogEuTCF8NCQ 7RACYRBuCQ3ZOdeXehlwEgPGgAkxRMzwO4uMFDdQTrgKMSxe7z9Pw+qiP9HbIN4Ldb KWBwTYqq9TsWMaQr6JZmYEdN6i62VahQC2IvR5XQ= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/113436] New: [OpenMP] 'allocate' clause has no effect for (first)private on 'target' directives Date: Wed, 17 Jan 2024 08:57:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: openmp, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone attachments.created 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113436 Bug ID: 113436 Summary: [OpenMP] 'allocate' clause has no effect for (first)private on 'target' directives Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: openmp, wrong-code Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- Created attachment 57112 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57112&action=3Dedit C/C++ testcase, compile with -fopenmp The following code fails with an ABORT for the alignment check in the target region as there is no 'omp_alloc' added for the privatized variables (private/firstprivate). It works in the parallel region. See testcase. * * * For dynamic allocators, it depends on the WIP patch: https://gcc.gnu.org/pipermail/gcc-patches/2023-November/637415.html but that should be a rather independent issue. Found while working on PR c++/110347 =E2=80=93 the being created patch cont= ains for that PR contains an #if 0 testcase, which shall be enabled once this PR is fixed.=