diff options
author | Tom de Vries <tom@codesourcery.com> | 2017-12-27 07:50:04 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2017-12-27 07:50:04 +0000 |
commit | 7ec16b79f003f568a398de192adc8f3e957327fe (patch) | |
tree | aaf84f0aa269fc110d7302f4a26d516073f59587 | |
parent | fa9afdc3bbc4b9a3560719ad8bd7ec736f5d47d5 (diff) | |
download | gcc-7ec16b79f003f568a398de192adc8f3e957327fe.zip gcc-7ec16b79f003f568a398de192adc8f3e957327fe.tar.gz gcc-7ec16b79f003f568a398de192adc8f3e957327fe.tar.bz2 |
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.
From-SVN: r256008
-rw-r--r-- | libgomp/ChangeLog | 6 | ||||
-rw-r--r-- | 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 d350e67..77776ca 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,9 @@ +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. + 2017-12-05 Jakub Jelinek <jakub@redhat.com> 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 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; |