[patch,gomp4] make fortran loop variables implicitly private in openacc
Cesar Philippidis
cesar@codesourcery.com
Mon Aug 11 23:55:00 GMT 2014
According to section 2.6.1 in the openacc spec, fortran loop variables
should be implicitly private like in openmp. This patch does just so.
Also, while working on this patch, I noticed that I made the check for
variables appearing in multiple openacc clauses too strict. A private
variable may also appear inside a reduction clause. I've also included a
fix for this in this patch.
Is this OK for gomp-4_0-branch?
Thanks,
Cesar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gfortran-acc-do-private.diff
Type: text/x-patch
Size: 4637 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20140811/62328011/attachment.bin>
More information about the Fortran
mailing list