[libgomp, testsuite, openacc] Don't use const int for dimensions
authorTom de Vries <tdevries@suse.de>
Wed, 9 Jan 2019 00:07:55 +0000 (00:07 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 9 Jan 2019 00:07:55 +0000 (00:07 +0000)
commit5d0bc70ae482221dacc08ebfb155c4841eeceefb
tree51160ce2ec48fadfc0c65a65a5ceca5f5d94b7b3
parent2c372e81a996e105571e71108f6427c38ec2a71a
[libgomp, testsuite, openacc] Don't use const int for dimensions

Const int is handled differently at -O0 for -xc and -xc++, which can cause noise
in testsuite/libgomp.oacc-c-c++-common test-cases (which are both run for c and
c++) if const int is used for launch dimensions.

Fix this by using #defines instead.

2019-01-09  Tom de Vries  <tdevries@suse.de>

PR target/88756
* testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
#define instead of "const int".
* testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
* testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
* testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
* testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.

From-SVN: r267747
libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-1.c
libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-2.c
libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-3.c
libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-4.c
libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-5.c