re PR other/80058 (fix double spaces in string literals everywhere)
authorJakub Jelinek <jakub@redhat.com>
Fri, 8 Mar 2019 10:51:28 +0000 (11:51 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 8 Mar 2019 10:51:28 +0000 (11:51 +0100)
PR other/80058
* lra-constraints.c (process_alt_operands): Avoid one space before
" at the end of line and another after " on another line in a string
literal.
* attribs.c (handle_dll_attribute): Likewise.
* config/avr/avr-devices.c (avr_texinfo): Likewise.
cp/
* parser.c (cp_parser_template_declaration_after_parameters): Avoid
one space before " at the end of line and another after " on another
line in a string literal.
fortran/
* arith.c (gfc_complex2complex): Avoid two spaces in the middle of
diagnostics.
* resolve.c (resolve_allocate_expr): Likewise.

From-SVN: r269487

gcc/ChangeLog
gcc/attribs.c
gcc/config/avr/avr-devices.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/fortran/ChangeLog
gcc/fortran/arith.c
gcc/fortran/resolve.c
gcc/lra-constraints.c

index 86bb8d5..54f3cd8 100644 (file)
@@ -1,5 +1,12 @@
 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
 
+       PR other/80058
+       * lra-constraints.c (process_alt_operands): Avoid one space before
+       " at the end of line and another after " on another line in a string
+       literal.
+       * attribs.c (handle_dll_attribute): Likewise.
+       * config/avr/avr-devices.c (avr_texinfo): Likewise.
+
        * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
        warning_at or inform messages in G_() if there is no ?:.
 
index 408f920..a55638d 100644 (file)
@@ -1664,7 +1664,7 @@ handle_dll_attribute (tree * pnode, tree name, tree args, int flags,
              && DECL_DECLARED_INLINE_P (node))
        {
          warning (OPT_Wattributes, "inline function %q+D declared as "
-                 " dllimport: attribute ignored", node);
+                 "dllimport: attribute ignored", node);
          *no_add_attrs = true;
        }
       /* Like MS, treat definition of dllimported variables and
index e6ced29..8688675 100644 (file)
@@ -76,7 +76,7 @@ avr_texinfo[] =
     "the @code{MOVW} instruction." },
   { ARCH_AVR3,
     "``Classic'' devices with 16@tie{}KiB up to 64@tie{}KiB of "
-    " program memory." },
+    "program memory." },
   { ARCH_AVR31,
     "``Classic'' devices with 128@tie{}KiB of program memory." },
   { ARCH_AVR35,
index 43184b0..2d58add 100644 (file)
@@ -1,5 +1,10 @@
 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
 
+       PR other/80058
+       * parser.c (cp_parser_template_declaration_after_parameters): Avoid
+       one space before " at the end of line and another after " on another
+       line in a string literal.
+
        PR tree-optimization/89550
        * semantics.c (maybe_convert_cond): Only set TREE_NO_WARNING if
        warning_at returned true.
index e6c2036..de2dd30 100644 (file)
@@ -27865,7 +27865,7 @@ cp_parser_template_declaration_after_parameters (cp_parser* parser,
          if (cxx_dialect > cxx17)
            error ("literal operator template %qD has invalid parameter list;"
                   "  Expected non-type template parameter pack <char...> "
-                  "  or single non-type parameter of class type",
+                  "or single non-type parameter of class type",
                   decl);
          else
            error ("literal operator template %qD has invalid parameter list."
index 2b23b99..2840368 100644 (file)
@@ -1,3 +1,10 @@
+2019-03-08  Jakub Jelinek  <jakub@redhat.com>
+
+       PR other/80058
+       * arith.c (gfc_complex2complex): Avoid two spaces in the middle of
+       diagnostics.
+       * resolve.c (resolve_allocate_expr): Likewise.
+
 2019-03-06  Harald Anlauf  <anlauf@gmx.de>
 
        PR fortran/71203
index 52d3a38..f2d311c 100644 (file)
@@ -2472,7 +2472,7 @@ gfc_complex2complex (gfc_expr *src, int kind)
       int w = warn_conversion ? OPT_Wconversion : OPT_Wconversion_extra;
 
       gfc_warning_now (w, "Change of value in conversion from "
-                      " %qs to %qs at %L",
+                      "%qs to %qs at %L",
                       gfc_typename (&src->ts), gfc_typename (&result->ts),
                       &src->where);
       did_warn = true;
index 955978b..1cf9cba 100644 (file)
@@ -7798,7 +7798,7 @@ resolve_allocate_expr (gfc_expr *e, gfc_code *code, bool *array_alloc_wo_spec)
                if (mpz_cmp_si (ar->start[i]->value.integer, 1) < 0)
                  {
                    gfc_error ("Upper cobound is less than lower cobound "
-                              " of 1 at %L", &ar->start[i]->where);
+                              "of 1 at %L", &ar->start[i]->where);
                    goto failure;
                  }
              }
index 629dc5d..afbd5d0 100644 (file)
@@ -2681,7 +2681,7 @@ process_alt_operands (int only_alternative)
                  if (lra_dump_file != NULL)
                    fprintf (lra_dump_file,
                             "            alt=%d: reload pseudo for op %d "
-                            " cannot hold the mode value -- refuse\n",
+                            "cannot hold the mode value -- refuse\n",
                             nalt, nop);
                  goto fail;
                }