Hi,

this patches fixes a problem in the gang-static-2.c test-case, which works around the PR83046 ICE, re-enabling the test-case.

Tested libgomp for x86_64 with nvptx accelerator.

Committed.

Thanks,
- Tom
Workaround PR83046 in gang-static-2.c

2017-12-27  Tom de Vries  <t...@codesourcery.com>

	PR c++/83046
	* testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
	(test_nonstatic): Fix return type to workaround PR83046.

---
 libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-2.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-2.c
index ce9632c..6de739a 100644
--- a/libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-2.c
+++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-2.c
@@ -14,7 +14,7 @@
        __asm__ volatile ("mov.u32 %0,%%ctaid.x;" : "=r" (__r));	\
        __r; }) : (I))
 
-int
+void
 test_static(int *a, int num_gangs, int sarg)
 {
   int i, j;
@@ -27,7 +27,7 @@ test_static(int *a, int num_gangs, int sarg)
       assert (a[i*sarg+j] == i % num_gangs);
 }
 
-int
+void
 test_nonstatic(int *a, int gangs)
 {
   int i, j;

Reply via email to