Hi!

Duplicated word in diagnostics and the same issues in 3 comments.

Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk as
obvious.

2018-03-16  Jakub Jelinek  <ja...@redhat.com>

        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.

--- gcc/c-family/c-warn.c.jj    2018-03-16 17:36:31.431124231 +0100
+++ gcc/c-family/c-warn.c       2018-03-16 17:44:34.905341083 +0100
@@ -1138,8 +1138,7 @@ conversion_warning (location_t loc, tree
       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
        {
--- gcc/hsa-gen.c.jj    2018-02-09 06:44:38.421804424 +0100
+++ gcc/hsa-gen.c       2018-03-16 17:46:00.981383468 +0100
@@ -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)
--- gcc/tree-vect-loop-manip.c.jj       2018-03-13 21:32:00.976647708 +0100
+++ gcc/tree-vect-loop-manip.c  2018-03-16 17:46:21.065393353 +0100
@@ -2700,7 +2700,7 @@ vect_do_peeling (loop_vec_info loop_vinf
 /* 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:
--- gcc/gimple-ssa-warn-restrict.c.jj   2018-03-09 20:11:55.135835711 +0100
+++ gcc/gimple-ssa-warn-restrict.c      2018-03-16 17:45:03.983355395 +0100
@@ -417,7 +417,7 @@ builtin_memref::set_base_and_offset (tre
 
   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;

        Jakub

Reply via email to