From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5E6BD3858032; Tue, 6 Jun 2023 13:25:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E6BD3858032 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686057958; bh=irzIvI2W5LwkwnVsJGMFq6kMVcov4YB4l7Le2sMQ3BY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=abz+UBTOwgeaedTE7BOJadfzyTwhW4Ppdlz7JpLgn7X5XIpiD0Tp3LLK2TF6YmoqC 6gNrXPwf/fRcMkFtTv4Q29oyqe1KpF07BvrV+T2cQVmJNh6JyZ3r9ziALDxVWHd1vS ycLSZusRTOJ4zntQ68RVNG7+LoPNrLwIgGzS9jAQ= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/109837] [OpenMP] despite 'requires unified_address' there is segfault when 'is_device_ptr' is not used Date: Tue, 06 Jun 2023 13:25:57 +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: 13.0 X-Bugzilla-Keywords: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109837 --- Comment #2 from Tobias Burnus --- Actually, I missed a crucial fine print regarding 'defaultmap(default)' implicit mapping of pointers in C/C++. GCC actually works (with firstprivat= e or with normal mapping) =E2=86=92 https://github.com/SOLLVE/sollve_vv/pull/737 TODO: It does not harm to have some Fortran ('type(c_ptr)') and C/C++ testc= ase in libgomp/testsuite/ but nothing else needs to be done. (For GCN, enabling unified_address makes sense.)=