From 7ec16b79f003f568a398de192adc8f3e957327fe Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Wed, 27 Dec 2017 07:50:04 +0000 Subject: [PATCH] Workaround PR83046 in gang-static-2.c 2017-12-27 Tom de Vries PR c++/83046 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static) (test_nonstatic): Fix return type to workaround PR83046. From-SVN: r256008 --- libgomp/ChangeLog | 6 ++++++ libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-2.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index d350e6770ef..77776ca8fca 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,9 @@ +2017-12-27 Tom de Vries + + PR c++/83046 + * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static) + (test_nonstatic): Fix return type to workaround PR83046. + 2017-12-05 Jakub Jelinek PR testsuite/83281 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 ce9632cf1c0..6de739ae99f 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; -- 2.30.2