* [gomp4.1] Testsuite tweaks
@ 2015-10-13 13:10 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2015-10-13 13:10 UTC (permalink / raw)
To: gcc-patches
Hi!
This patch fixes issues in tests I'm not running all the time during
gomp branch development (basically I do just RUNTESTFLAGS=gomp.exp
in gcc subdir and check-target-libgomp).
2015-10-13 Jakub Jelinek <jakub@redhat.com>
* c-c++-common/cpp/openmp-define-3.c: Adjust for the new
value of _OPENMP macro.
* c-c++-common/cilk-plus/PS/body.c (foo): Adjust expected diagnostics.
* c-c++-common/goacc-gomp/nesting-fail-1.c (f_acc_parallel,
f_acc_kernels, f_acc_data, f_acc_loop): Add map clause to target data.
--- gcc/testsuite/c-c++-common/cpp/openmp-define-3.c.jj 2015-04-24 12:32:01.000000000 +0200
+++ gcc/testsuite/c-c++-common/cpp/openmp-define-3.c 2015-10-13 14:58:40.968654734 +0200
@@ -6,6 +6,6 @@
# error _OPENMP not defined
#endif
-#if _OPENMP != 201307
+#if _OPENMP != 201511
# error _OPENMP defined to wrong value
#endif
--- gcc/testsuite/c-c++-common/cilk-plus/PS/body.c.jj 2015-04-24 12:32:01.000000000 +0200
+++ gcc/testsuite/c-c++-common/cilk-plus/PS/body.c 2015-10-13 15:00:00.946495358 +0200
@@ -27,7 +27,7 @@ void foo()
#pragma simd
for (int i=0; i < 1000; ++i)
{
-#pragma omp for /* { dg-error "OpenMP constructs may not" } */
+#pragma omp for /* { dg-error "OpenMP constructs other than" } */
for (j=0; j < 1000; ++j)
a[i] = b[i];
}
--- gcc/testsuite/c-c++-common/goacc-gomp/nesting-fail-1.c.jj 2015-04-24 12:32:01.000000000 +0200
+++ gcc/testsuite/c-c++-common/goacc-gomp/nesting-fail-1.c 2015-10-13 15:02:18.549500635 +0200
@@ -230,7 +230,7 @@ f_acc_parallel (void)
{
#pragma omp target /* { dg-error "non-OpenACC construct inside of OpenACC region" } */
;
-#pragma omp target data /* { dg-error "non-OpenACC construct inside of OpenACC region" } */
+#pragma omp target data map(i) /* { dg-error "non-OpenACC construct inside of OpenACC region" } */
;
#pragma omp target update to(i) /* { dg-error "non-OpenACC construct inside of OpenACC region" } */
}
@@ -300,7 +300,7 @@ f_acc_kernels (void)
{
#pragma omp target /* { dg-error "non-OpenACC construct inside of OpenACC region" } */
;
-#pragma omp target data /* { dg-error "non-OpenACC construct inside of OpenACC region" } */
+#pragma omp target data map(i) /* { dg-error "non-OpenACC construct inside of OpenACC region" } */
;
#pragma omp target update to(i) /* { dg-error "non-OpenACC construct inside of OpenACC region" } */
}
@@ -370,7 +370,7 @@ f_acc_data (void)
{
#pragma omp target /* { dg-error "non-OpenACC construct inside of OpenACC region" } */
;
-#pragma omp target data /* { dg-error "non-OpenACC construct inside of OpenACC region" } */
+#pragma omp target data map(i) /* { dg-error "non-OpenACC construct inside of OpenACC region" } */
;
#pragma omp target update to(i) /* { dg-error "non-OpenACC construct inside of OpenACC region" } */
}
@@ -450,7 +450,7 @@ f_acc_loop (void)
{
#pragma omp target /* { dg-error "non-OpenACC construct inside of OpenACC region" } */
;
-#pragma omp target data /* { dg-error "non-OpenACC construct inside of OpenACC region" } */
+#pragma omp target data map(i) /* { dg-error "non-OpenACC construct inside of OpenACC region" } */
;
#pragma omp target update to(i) /* { dg-error "non-OpenACC construct inside of OpenACC region" } */
}
Jakub
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-13 13:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-13 13:10 [gomp4.1] Testsuite tweaks Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).