Re: [Patch] OpenMP/Fortran: Fix handling of optional is_device_ptr + bind(C) [PR108546]

2023-03-01 Thread Jakub Jelinek via Gcc-patches
On Tue, Feb 28, 2023 at 05:18:25PM +0100, Tobias Burnus wrote: > OpenMP/Fortran: Fix handling of optional is_device_ptr + bind(C) [PR108546] > > For is_device_ptr, optional checks should only be done before calling > libgomp, afterwards they are NULL either because of absent or, by > chance,

[Patch] OpenMP/Fortran: Fix handling of optional is_device_ptr + bind(C) [PR108546]

2023-02-28 Thread Tobias Burnus
(That's a[11/12/13 Regression] P2 regression) The problem is that an is-present check on the receiver side (inside the target region) does not make much sense; the != NULL check needs to be done before the GOMP_target_ext but it *is* already there. (Having the check inside the target region