diff options
author | Martin Liska <mliska@suse.cz> | 2022-01-18 17:50:02 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2022-01-19 08:27:00 +0100 |
commit | 2aea19bdb12308aac1519ffc5ecc9d1ec24f9cc5 (patch) | |
tree | 6532006956b9995d531cf9e85b7d0abd9f255b6d /gcc | |
parent | 54e33cf120dab24ce44d7d6028e6247c9489092f (diff) | |
download | gcc-2aea19bdb12308aac1519ffc5ecc9d1ec24f9cc5.zip gcc-2aea19bdb12308aac1519ffc5ecc9d1ec24f9cc5.tar.gz gcc-2aea19bdb12308aac1519ffc5ecc9d1ec24f9cc5.tar.bz2 |
nvptx: update fix for -Wformat-diag
gcc/ChangeLog:
* config/nvptx/nvptx.cc (nvptx_goacc_validate_dims_1): Update
warning messages.
libgomp/ChangeLog:
* testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
patterns.
* testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
* testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
Likewise.
* testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
Likewise.
* testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
Likewise.
* testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
Likewise.
* testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
Likewise.
* testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
Likewise.
* testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
Likewise.
* testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
* testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
* testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
Co-authored-by: Thomas Schwinge <thomas@codesourcery.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/nvptx/nvptx.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/nvptx/nvptx.cc b/gcc/config/nvptx/nvptx.cc index a829bd3..db6a405 100644 --- a/gcc/config/nvptx/nvptx.cc +++ b/gcc/config/nvptx/nvptx.cc @@ -5894,7 +5894,7 @@ nvptx_goacc_validate_dims_1 (tree decl, int dims[], int fn_level, unsigned used) if (dims[GOMP_DIM_VECTOR] > PTX_WARP_SIZE) { - vector_reason = G_("using %<vector_length%> (%d) due to call to" + vector_reason = G_("using %<vector_length (%d)%> due to call to" " vector-partitionable routine, ignoring %d"); dims[GOMP_DIM_VECTOR] = PTX_WARP_SIZE; } @@ -5902,7 +5902,7 @@ nvptx_goacc_validate_dims_1 (tree decl, int dims[], int fn_level, unsigned used) if (dims[GOMP_DIM_VECTOR] == 0) { - vector_reason = G_("using %<vector_length%> (%d), ignoring runtime setting"); + vector_reason = G_("using %<vector_length (%d)%>, ignoring runtime setting"); dims[GOMP_DIM_VECTOR] = default_vector_length; } @@ -5916,12 +5916,12 @@ nvptx_goacc_validate_dims_1 (tree decl, int dims[], int fn_level, unsigned used) warning_at (decl ? DECL_SOURCE_LOCATION (decl) : UNKNOWN_LOCATION, 0, vector_reason != NULL ? vector_reason - : G_("using %<vector_length%> (%d), ignoring %d"), + : G_("using %<vector_length (%d)%>, ignoring %d"), dims[GOMP_DIM_VECTOR], old_dims[GOMP_DIM_VECTOR]); if (dims[GOMP_DIM_WORKER] != old_dims[GOMP_DIM_WORKER]) warning_at (decl ? DECL_SOURCE_LOCATION (decl) : UNKNOWN_LOCATION, 0, - G_("using %<num_workers%> (%d), ignoring %d"), + G_("using %<num_workers (%d)%>, ignoring %d"), dims[GOMP_DIM_WORKER], old_dims[GOMP_DIM_WORKER]); if (oacc_default_dims_p) |