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?

Reply via email to