aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-01-18 14:16:53 +0100
committerMartin Liska <mliska@suse.cz>2022-01-18 17:25:36 +0100
commitb1f3640912a050d1c405d01f909074659db92c7b (patch)
tree9af43f771e349faaccdcae7e2656c1d76979f05e /gcc
parent591b6e00d1bfe12932ca31530d5859f95db8a35a (diff)
downloadgcc-b1f3640912a050d1c405d01f909074659db92c7b.zip
gcc-b1f3640912a050d1c405d01f909074659db92c7b.tar.gz
gcc-b1f3640912a050d1c405d01f909074659db92c7b.tar.bz2
nvptx: fix -Wformat-diag warnings
gcc/ChangeLog: * config/nvptx/nvptx.cc (nvptx_goacc_validate_dims_1): Wrap keyword. * config/nvptx/nvptx.md: Remove trailing dot. libgomp/ChangeLog: * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword in dg-warning. * 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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/nvptx/nvptx.cc8
-rw-r--r--gcc/config/nvptx/nvptx.md6
2 files changed, 7 insertions, 7 deletions
diff --git a/gcc/config/nvptx/nvptx.cc b/gcc/config/nvptx/nvptx.cc
index 20fd893..a829bd3 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)
diff --git a/gcc/config/nvptx/nvptx.md b/gcc/config/nvptx/nvptx.md
index ce74672..5cf190a 100644
--- a/gcc/config/nvptx/nvptx.md
+++ b/gcc/config/nvptx/nvptx.md
@@ -1410,7 +1410,7 @@
(match_operand 3 "" "")]
""
{
- sorry ("target cannot support nonlocal goto.");
+ sorry ("target cannot support nonlocal goto");
emit_insn (gen_nop ());
DONE;
})
@@ -1419,7 +1419,7 @@
[(const_int 0)]
""
{
- sorry ("target cannot support nonlocal goto.");
+ sorry ("target cannot support nonlocal goto");
})
(define_expand "allocate_stack"
@@ -1438,7 +1438,7 @@
/* The ptx documentation specifies an alloca intrinsic (for 32 bit
only) but notes it is not implemented. The assembler emits a
confused error message. Issue a blunt one now instead. */
- sorry ("target cannot support alloca.");
+ sorry ("target cannot support alloca");
emit_insn (gen_nop ());
DONE;
})