re PR other/80058 (fix double spaces in string literals everywhere)

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
This commit is contained in:
Jakub Jelinek 2019-03-08 11:51:28 +01:00 committed by Jakub Jelinek
parent 723a52f951
commit 0d7bac69b7
9 changed files with 25 additions and 6 deletions

View 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 ?:.

View 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

View 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,

View 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.

View 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."

View 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

View 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;

View 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;
}
}

View 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;
}