Thomas, This patch fixes the libgomp-oacc.c/lib-66.c testcase.
It allows the test to run for non-shared mem accelerators, and skips the test otherwise.
ok for gomp-4_0-branch? Thanks, - Tom
2014-11-03 Tom de Vries <t...@codesourcery.com> * testsuite/libgomp.oacc-c/lib-66.c: Skip for shared memory accelerators. (main): Use acc_device_default instead of acc_device_nvidia. diff --git a/libgomp/testsuite/libgomp.oacc-c/lib-66.c b/libgomp/testsuite/libgomp.oacc-c/lib-66.c index 360c05b..398dc2a 100644 --- a/libgomp/testsuite/libgomp.oacc-c/lib-66.c +++ b/libgomp/testsuite/libgomp.oacc-c/lib-66.c @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */ #include <string.h> #include <stdlib.h> @@ -12,7 +13,7 @@ main (int argc, char **argv) unsigned char *h; void *d; - acc_init (acc_device_nvidia); + acc_init (acc_device_default); h = (unsigned char *) malloc (N); @@ -41,7 +42,7 @@ main (int argc, char **argv) free (h); - acc_shutdown (acc_device_nvidia); + acc_shutdown (acc_device_default); return 0; } -- 1.9.1