"const" qualifier vs. OpenACC data/OpenMP map clauses (was: [patch] fix an openacc test case)

2016-04-15 Thread Thomas Schwinge
Hi! On Thu, 14 Apr 2016 14:21:33 -0700, Cesar Philippidis wrote: > This patch fixes a segfault in libgomp.oacc-fortran/non-scalar-data.f90. > The problem here is that 'n' is a parameter, and the kernels region > implicitly adds a copy clause to n. Naturally, the test segfaults when > it comes ti

[patch] fix an openacc test case

2016-04-14 Thread Cesar Philippidis
This patch fixes a segfault in libgomp.oacc-fortran/non-scalar-data.f90. The problem here is that 'n' is a parameter, and the kernels region implicitly adds a copy clause to n. Naturally, the test segfaults when it comes time to write the value back to the host as the kernels region terminates. Thi