aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-03-16 21:12:27 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-03-16 21:12:27 +0100
commitce811fc49bb470856f6c4953c071d5b3db6485bb (patch)
tree3f1832e061de4a3f054707d165dc576e4be68441 /gcc
parent63ecb626d69524c70858af5f17f4c03b5c4707c7 (diff)
downloadgcc-ce811fc49bb470856f6c4953c071d5b3db6485bb.zip
gcc-ce811fc49bb470856f6c4953c071d5b3db6485bb.tar.gz
gcc-ce811fc49bb470856f6c4953c071d5b3db6485bb.tar.bz2
re PR c/84909 (typo: conversion from %qT to to %qT)
PR c/84909 * c-warn.c (conversion_warning): Replace "to to" with "to" in diagnostics. * hsa-gen.c (mem_type_for_type): Fix comment typo. * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): Likewise. * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset): Likewise. From-SVN: r258609
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/c-family/ChangeLog4
-rw-r--r--gcc/c-family/c-warn.c3
-rw-r--r--gcc/gimple-ssa-warn-restrict.c2
-rw-r--r--gcc/hsa-gen.c2
-rw-r--r--gcc/tree-vect-loop-manip.c2
6 files changed, 17 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b6037d2..7aeedb7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,12 @@
+2018-03-16 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/84909
+ * hsa-gen.c (mem_type_for_type): Fix comment typo.
+ * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks):
+ Likewise.
+ * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
+ Likewise.
+
2018-03-16 Vladimir Makarov <vmakarov@redhat.com>
PR target/84876
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 38dbbe3..6635f37 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,5 +1,9 @@
2018-03-16 Jakub Jelinek <jakub@redhat.com>
+ PR c/84909
+ * c-warn.c (conversion_warning): Replace "to to" with "to" in
+ diagnostics.
+
PR c/84910
* c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
diagnostics.
diff --git a/gcc/c-family/c-warn.c b/gcc/c-family/c-warn.c
index 7672d53..d0d9c78 100644
--- a/gcc/c-family/c-warn.c
+++ b/gcc/c-family/c-warn.c
@@ -1138,8 +1138,7 @@ conversion_warning (location_t loc, tree type, tree expr, tree result)
conversion_kind = unsafe_conversion_p (loc, type, expr, result, true);
if (conversion_kind == UNSAFE_IMAGINARY)
warning_at (loc, OPT_Wconversion,
- "conversion from %qT to to %qT discards imaginary "
- "component",
+ "conversion from %qT to %qT discards imaginary component",
expr_type, type);
else
{
diff --git a/gcc/gimple-ssa-warn-restrict.c b/gcc/gimple-ssa-warn-restrict.c
index 25cc032..e7a85fd 100644
--- a/gcc/gimple-ssa-warn-restrict.c
+++ b/gcc/gimple-ssa-warn-restrict.c
@@ -417,7 +417,7 @@ builtin_memref::set_base_and_offset (tree expr)
poly_int64 bytepos = exact_div (bitpos, BITS_PER_UNIT);
- /* Convert the poly_int64 offset to to offset_int. The offset
+ /* Convert the poly_int64 offset to offset_int. The offset
should be constant but be prepared for it not to be just in
case. */
offset_int cstoff;
diff --git a/gcc/hsa-gen.c b/gcc/hsa-gen.c
index 55a46b5..7974fff 100644
--- a/gcc/hsa-gen.c
+++ b/gcc/hsa-gen.c
@@ -691,7 +691,7 @@ mem_type_for_type (BrigType16_t type)
/* HSA has non-intuitive constraints on load/store types. If it's
a bit-type it _must_ be B128, if it's not a bit-type it must be
64bit max. So for loading entities of 128 bits (e.g. vectors)
- we have to to B128, while for loading the rest we have to use the
+ we have to use B128, while for loading the rest we have to use the
input type (??? or maybe also flattened to a equally sized non-vector
unsigned type?). */
if ((type & BRIG_TYPE_PACK_MASK) == BRIG_TYPE_PACK_128)
diff --git a/gcc/tree-vect-loop-manip.c b/gcc/tree-vect-loop-manip.c
index 1c43ed0..e82c1fe 100644
--- a/gcc/tree-vect-loop-manip.c
+++ b/gcc/tree-vect-loop-manip.c
@@ -2700,7 +2700,7 @@ vect_do_peeling (loop_vec_info loop_vinfo, tree niters, tree nitersm1,
/* Function vect_create_cond_for_niters_checks.
Create a conditional expression that represents the run-time checks for
- loop's niter. The loop is guaranteed to to terminate if the run-time
+ loop's niter. The loop is guaranteed to terminate if the run-time
checks hold.
Input: