https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95551
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Thomas Schwinge <[email protected]>: https://gcc.gnu.org/g:152052cba399ce8b7c6e44da6eba577a6bd1bba4 commit r16-8727-g152052cba399ce8b7c6e44da6eba577a6bd1bba4 Author: Thomas Schwinge <[email protected]> Date: Tue Apr 14 17:29:59 2026 +0200 openmp: ensure variables in offload table are streamed out (PRs 94848 + 95551): OpenACC test case The test case 'libgomp.fortran/target-var.f90' added in commit 1c0fdaf79e3618fd7512608a2e5c62b6b306e9e8 "openmp: ensure variables in offload table are streamed out (PRs 94848 + 95551)" alluded to an OpenACC variant in addition to OpenMP 'target', but didn't actually add it -- do that now. Via reverting the applicable compiler-side code changes, I've re-confirmed that the original problem also applied to OpenACC. For good measure, also fix up the OpenACC: the array assignment/constructor before the loop and 'if'/'any' check after the loop execute in gang-redundant mode, which -- in presence of multiple gangs executing, as implied by the OpenACC 'loop' construct with 'gang' clause -- is dubious, even if probably benign in this specific case here, I suppose. Use OpenACC 'kernels' instead. PR middle-end/95551 libgomp/ * testsuite/libgomp.fortran/target-var.f90: Rename to... * testsuite/libgomp.fortran/pr95551-1.f90: ... this, and fix up the OpenACC. * testsuite/libgomp.oacc-fortran/pr95551-1.f90: New.
