re PR c/84909 (typo: conversion from %qT to to %qT)
authorJakub Jelinek <jakub@redhat.com>
Fri, 16 Mar 2018 20:12:27 +0000 (21:12 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 16 Mar 2018 20:12:27 +0000 (21:12 +0100)
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

gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-warn.c
gcc/gimple-ssa-warn-restrict.c
gcc/hsa-gen.c
gcc/tree-vect-loop-manip.c

index b6037d27c80ad9d7fb7376cd5df202c40d8867ca..7aeedb76dad799631d492131786d0c1c8dbd2964 100644 (file)
@@ -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
index 38dbbe377169d2aca2f6921c006d2244346cced1..6635f37ae4151ba01904130fbd4d46e935246d23 100644 (file)
@@ -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.
index 7672d534ffc888ad54db21a53eed2c0b279b181d..d0d9c7894a80e02adc326d4bd78b37933263e44b 100644 (file)
@@ -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
        {
index 25cc032c2da9c038e8a12f892cdb7d5c37745810..e7a85fdcd13b246f3e9fc035c169fe02bde91c1c 100644 (file)
@@ -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;
index 55a46b5a16ac2219c5863cee21ec1b2fe84b4702..7974fffe360f77eb4e35a8c4a588e4b2865d5de3 100644 (file)
@@ -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)
index 1c43ed0becd58abc81ca12c527672ec55c4a0809..e82c1fe027ee74310888d4f3b22e4429afd24869 100644 (file)
@@ -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: