From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DAFFC3858426; Tue, 5 Dec 2023 13:57:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DAFFC3858426 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701784649; bh=x9FJyBSLhucGUlSqgNMPO5/VqwQ5WHSz4hWsQ08dM2g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=x3TvNj74LGj0ONJf2YaHDRfUziKkSYTPSCluaNuruoD/6mXZnHEUsTSY82+kp1KZB S4GbZ/zRX0+VW916CtlAhHj7aakGf+NVMuy7PVUIg91Icj9osZYXyMhbm+YJKABrXV Y47+/jE6oVxwMRNgbobzYW2hDrUYjfco6gt48kdI= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/110639] [OpenMP][5.1] Predefined firstprivate for pointers - attachment missing Date: Tue, 05 Dec 2023 13:57:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: attachments.created 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=3D110639 --- Comment #3 from Tobias Burnus --- Created attachment 56804 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56804&action=3Dedit gimplify.cc patch to ensure that GOVD_MAP_0LEN_ARRAY comes last (does not f= ix the issue) I tried the attached patch see whether it fixes the problem. It doesn't as = the pointer-lookup-for-attachment seems to happen in an earlier 'for' loop than= the 'for' loop that does the actual mapping for clauses on the same 'target' directive (=E2=86=92 gomp_map_vars_internal). Thus, either this patch is not required - or it is only required in additio= n; in any case, it seems as if libgomp/target.c's gomp_map_vars_internal needs= to be modified.=