diff mbox series

[libgomp,testsuite,committed] Workaround PR83046 in gang-static-2.c

Message ID 616b3991-146e-68e4-8b86-256f7d19692f@mentor.com
State New
Headers show
Series [libgomp,testsuite,committed] Workaround PR83046 in gang-static-2.c | expand

Commit Message

Tom de Vries Dec. 27, 2017, 8:05 a.m. UTC
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
diff mbox series

Patch

Workaround PR83046 in gang-static-2.c

2017-12-27  Tom de Vries  <tom@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;