This is an updated version of the patch: https://gcc.gnu.org/ml/gcc-patches/2014-09/msg02025.html but against gomp4 branch instead of mainline. Some tests have been updated a little since the last patch. OK to apply (to the gomp4 branch)? Thanks, Julian ChangeLog xxxx-xx-xx James Norris Thomas Schwinge Tom de Vries Cesar Philippidis libgomp/ * testsuite/Makefile.in: Regenerated. * testsuite/lib/libgomp.exp (check_effective_target_openacc_nvidia_accel_present) (check_effective_target_openacc_nvidia_accel_selected): New functions. * testsuite/libgomp.oacc-fortran/fortran.exp: New exp file. * testsuite/libgomp.oacc-fortran/*.f: New tests. * testsuite/libgomp.oacc-fortran/*.f90: Likewise. * testsuite/libgomp.oacc-c/c.exp: New exp file. * testsuite/libgomp.oacc-c/subr.ptx: New file. * testsuite/libgomp.oacc-c/subr.cu: New file. * testsuite/libgomp.oacc-c/timer.h: New file. * testsuite/libgomp.oacc-c/*.c: New tests. * testsuite/libgomp.oacc-c++/c++.exp: New exp file.