From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 10B79386F800; Thu, 9 Jul 2020 22:44:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 10B79386F800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594334667; bh=w0JvkfYY2434ZcHyXYy9gjldw874CPQ9JpCcW2+pb1k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VcU9TT0Pa0ZKfyn2Ms4XjzsDROfw3XnH6xHUz4DBysmmzjo0fJnvi9wMp1rHpzwjo OzIGHuu2BDCSoR2QaeW+6Ux12D+ygSpkwLQCeTcftShbSd8GRU9tCIzJjHfdoqsu0W +sVoxQwBk+haoGAAn2n/BYHVK9xXgLlC9ucY3III= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/95270] OpenACC 'enter data attach' looks up target memory object displaced by pointer size Date: Thu, 09 Jul 2020 22:44:26 +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: 10.0 X-Bugzilla-Keywords: openacc X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jules at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.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 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: Thu, 09 Jul 2020 22:44:27 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95270 --- Comment #3 from CVS Commits --- The master branch has been updated by Julian Brown : https://gcc.gnu.org/g:0d00fe404c162ad0cf922ca8455aa23a74042b63 commit r11-1976-g0d00fe404c162ad0cf922ca8455aa23a74042b63 Author: Julian Brown Date: Tue Jun 9 06:21:34 2020 -0700 openacc: Set bias to zero for explicit attach/detach clauses in C and C= ++ This is a fix for the pointer (or array) size inadvertently being used for the bias with attach and detach mapping kinds, for both C and C++. 2020-07-09 Julian Brown Thomas Schwinge gcc/c/ PR middle-end/95270 * c-typeck.c (c_finish_omp_clauses): Set OMP_CLAUSE_SIZE (bias)= to zero for standalone attach/detach clauses. gcc/cp/ PR middle-end/95270 * semantics.c (finish_omp_clauses): Likewise. include/ PR middle-end/95270 * gomp-constants.h (gomp_map_kind): Expand comment for attach/detach mapping kinds. gcc/testsuite/ PR middle-end/95270 * c-c++-common/goacc/mdc-1.c: Update expected dump output for z= ero bias. libgomp/ PR middle-end/95270 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test. * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.=