From: Julian Brown Date: Mon, 20 May 2019 23:31:41 +0000 (-0700) Subject: Fix warning syntax and typos in two libgomp tests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95c9c226ec289498f7d5263d211ab2766b54981b;p=thirdparty%2Fgcc.git Fix warning syntax and typos in two libgomp tests libgomp/ * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Expect "optimized:" not "note:" in warnings. * testsuite/libgomp.oacc-c-c++-common/serial-dims.c: Fix typos in warnings. (cherry picked from openacc-gcc-9-branch commit d6627e7056558a844c0a26f21dfaa5e0b5040709) --- diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp index 225b4b5d4541..0436191ce289 100644 --- a/libgomp/ChangeLog.omp +++ b/libgomp/ChangeLog.omp @@ -1,3 +1,10 @@ +2019-05-20 Julian Brown + + * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Expect + "optimized:" not "note:" in warnings. + * testsuite/libgomp.oacc-c-c++-common/serial-dims.c: Fix typos in + warnings. + 2019-05-16 Julian Brown * testsuite/libgomp.oacc-c-c++-common/kernels-for-index-reuse-1.c: New diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c index bf58a139d3ad..45d786d81dff 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c @@ -11,14 +11,14 @@ int main() #pragma acc kernels { - int c = 234; /* { dg-warning "note: beginning .gang-single. region in OpenACC .kernels. construct" } */ + int c = 234; /* { dg-warning "optimized: beginning .gang-single. region in OpenACC .kernels. construct" } */ -#pragma acc loop independent gang /* { dg-warning "note: assigned OpenACC gang loop parallelism" } */ - /* { dg-warning "note: parallelized loop nest in OpenACC .kernels. construct" "" { target *-*-* } 16 } */ +#pragma acc loop independent gang /* { dg-warning "optimized: assigned OpenACC gang loop parallelism" } */ + /* { dg-warning "optimized: parallelized loop nest in OpenACC .kernels. construct" "" { target *-*-* } 16 } */ for (int i = 0; i < N; ++i) b[i] = c; - a = c; /* { dg-warning "note: beginning .gang-single. region in OpenACC .kernels. construct" } */ + a = c; /* { dg-warning "optimized: beginning .gang-single. region in OpenACC .kernels. construct" } */ } for (int i = 0; i < N; ++i) diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/serial-dims.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/serial-dims.c index 7a8a85c3bb03..dc6e1eac938d 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/serial-dims.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/serial-dims.c @@ -1,7 +1,5 @@ /* OpenACC dimensions with the serial construct. */ -/* { dg-additional-options "-foffload-force" } */ - #include #include #include @@ -58,10 +56,10 @@ int main () gangs_max = workers_max = vectors_max = INT_MIN; gangs_actual = workers_actual = vectors_actual = 1; #pragma acc serial - /* { dg-warning "region contains gang partitoned code but is not gang partitioned" "" { target *-*-* } 60 } */ - /* { dg-warning "region contains worker partitoned code but is not worker partitioned" "" { target *-*-* } 60 } */ - /* { dg-warning "region contains vector partitoned code but is not vector partitioned" "" { target *-*-* } 60 } */ - /* { dg-warning "using vector_length \\(32\\), ignoring 1" "" { target openacc_nvidia_accel_selected } 60 } */ + /* { dg-warning "region contains gang partitioned code but is not gang partitioned" "" { target *-*-* } 58 } */ + /* { dg-warning "region contains worker partitioned code but is not worker partitioned" "" { target *-*-* } 58 } */ + /* { dg-warning "region contains vector partitioned code but is not vector partitioned" "" { target *-*-* } 58 } */ + /* { dg-warning "using vector_length \\(32\\), ignoring 1" "" { target openacc_nvidia_accel_selected } 58 } */ { if (acc_on_device (acc_device_nvidia)) {