[Bug fortran/126940] [17 Regression] testsuite fails for libgomp.oacc-fortran/host_data-5.F90

"burnus at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126940

--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Created attachment 65371
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65371&action=edit
Patch to openacc.f90 / openacc_lib.h - to avoid packing [w/o libgomp.map
changes]

Untested (!) patch that does what I discussed in previous comment - namely,
remove 'contigous' and use 'dimension(..)' instead of 'dimension(*)'.

The advantage of this change is that it avoids some packaging checks that
aren't required (for valid (= contiguous) code + for invalid one, it is also
not more more wrong than before).

Down side is that there will be two extra functions in libgomp.

* * *

Alternatively, we could only add the 'intent(in)' and possibly remove the
'contiguous' - which doesn't help with the testcase but keeps backward
compatibility.

* * *

Alternatively - or in addition - a 'contiguous' could be added for the 'parr'
dummy argument in the testcase.


Thomas: Any preferences?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.