From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7E376385842B; Tue, 13 Feb 2024 10:43:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E376385842B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707821006; bh=hsJmXu1uFL3I7TxkQC52ZlGh7jn3omyjyxAEtOiUsgU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=trEaJ4Ns88lVUWDZymmGRQ5c7SkhbTwGHpk3QIUbn3RQdmwGYIMPHSNP94Yxp6pDv jVmn9jRt5vDA/tdRnMNoEmqZh5QbAriZdHSvSdUz7MIZcuq87vqyNsI/8gvyU2Ydi6 SrAzcDmwXaHjzoxtVASyIieoOZEbDKYSOTGkw5Ek= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/113867] [14 Regression][OpenMP] Wrong code with mapping pointers in structs Date: Tue, 13 Feb 2024 10:43:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgomp 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: burnus at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D113867 --- Comment #4 from Tobias Burnus --- Also not handled: struct s { int *p; } s1; ... #pragma omp target map(s1.p[:N]) p[0] =3D p[N-1] =3D 99; Here, the pointer attachment is missing. See also PR113724 's attachment 5= 7407 for a testcase for this and (some) other issues. TODO: - Fix the extra struct issue (=E2=86=92 this patch or other solution) - Fix the missing attachment issue (this comment's example) - Audit whether other changes are required.=