From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C418F385B835; Fri, 17 Apr 2020 11:41:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C418F385B835 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587123718; bh=Coii3+XScZ6hI1z5YhgR28jM/bi4RtG38j89DhQKoh8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SMQ6hfoWe8n8mozk8rGoP/LZ0EediDLZqPgVZe15QDEmlmEur18tGyTphXGa3PNAV YngC3I3WQE9Lbh6f4UjSrYncbeJs5t+wL8EcZ4h8xW4BpDIDvQ43RKg2OuoQIWZylI 46rSvgD97QK+C2gIi84M8zWXOy7Uzq6SmwzxKJYw= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/94635] [OpenMP][Offloading] mapping with alloc/delete followed by map(from/tofrom:) fails Date: Fri, 17 Apr 2020 11:41:58 +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: 10.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: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Apr 2020 11:41:58 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94635 --- Comment #1 from Tobias Burnus --- Just showing the dump =E2=80=93 without further analysis: #pragma omp target enter data map(alloc:MEM[(c_char *)_9] [len: _8]) // _9 =3D my1dptr.data, _8 =3D 2= 0*4 map(to:my1dptr [pointer set, len: 64]) map(alloc:my1dptr.data [pointer assign, bias: 0]) #pragma omp target exit data map(delete:MEM[(c_char *)_14] [len: _13]) //=20 #pragma omp target num_teams(1) thread_limit(0) map(from:my1darr [len: 80]) map(tofrom:MEM[(c_char *)_21] [len: _20]) // _21 =3D my1dptr.data, _20 = =3D 20*4 map(to:my1dptr [pointer set, len: 64]) map(alloc:my1dptr.data [pointer assign, bias: 0]) [child fn: MAIN__._omp_fn.0 (.omp_data_arr.22, .omp_data_sizes.23, .omp_data_kinds.24)]=