aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-03-16 21:11:40 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-03-16 21:11:40 +0100
commit63ecb626d69524c70858af5f17f4c03b5c4707c7 (patch)
tree8409e3c764dd5587e5a851b5e9c22e18e155e851 /gcc
parent299ab1b2a13bc34d8dd205a4762e81e627b8ba1f (diff)
downloadgcc-63ecb626d69524c70858af5f17f4c03b5c4707c7.zip
gcc-63ecb626d69524c70858af5f17f4c03b5c4707c7.tar.gz
gcc-63ecb626d69524c70858af5f17f4c03b5c4707c7.tar.bz2
re PR c/84910 (typo: "%qs follows inline declaration ")
PR c/84910 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from diagnostics. * parser.c (cp_parser_lambda_introducer): Remove trailing space from diagnostics. * method.c (synthesize_method): Likewise. * pt.c (convert_nontype_argument): Likewise. From-SVN: r258608
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-family/ChangeLog6
-rw-r--r--gcc/c-family/c-warn.c2
-rw-r--r--gcc/cp/ChangeLog8
-rw-r--r--gcc/cp/method.c2
-rw-r--r--gcc/cp/parser.c2
-rw-r--r--gcc/cp/pt.c2
6 files changed, 18 insertions, 4 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index a54d44e..38dbbe3 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,9 @@
+2018-03-16 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/84910
+ * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
+ diagnostics.
+
2018-03-16 Richard Biener <rguenther@suse.de>
PR c/84873
diff --git a/gcc/c-family/c-warn.c b/gcc/c-family/c-warn.c
index 51c376b..7672d53 100644
--- a/gcc/c-family/c-warn.c
+++ b/gcc/c-family/c-warn.c
@@ -2258,7 +2258,7 @@ diagnose_mismatched_attributes (tree olddecl, tree newdecl)
&& DECL_UNINLINABLE (newdecl)
&& lookup_attribute ("noinline", DECL_ATTRIBUTES (newdecl)))
warned |= warning (OPT_Wattributes, "declaration of %q+D with attribute "
- "%qs follows inline declaration ", newdecl, noinline);
+ "%qs follows inline declaration", newdecl, noinline);
return warned;
}
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index fe7b32e..2a8da08 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,11 @@
+2018-03-16 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/84910
+ * parser.c (cp_parser_lambda_introducer): Remove trailing space from
+ diagnostics.
+ * method.c (synthesize_method): Likewise.
+ * pt.c (convert_nontype_argument): Likewise.
+
2018-03-16 Jason Merrill <jason@redhat.com>
PR c++/84720 - ICE with rvalue ref non-type argument.
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 33029d7..83fed6c 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -950,7 +950,7 @@ synthesize_method (tree fndecl)
pop_deferring_access_checks ();
if (error_count != errorcount || warning_count != warningcount + werrorcount)
- inform (input_location, "synthesized method %qD first required here ",
+ inform (input_location, "synthesized method %qD first required here",
fndecl);
}
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 119f6c0..c8a0e77 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -10383,7 +10383,7 @@ cp_parser_lambda_introducer (cp_parser* parser, tree lambda_expr)
&& TREE_CODE (capture_init_expr) != PARM_DECL)
{
error_at (capture_token->location,
- "capture of non-variable %qE ",
+ "capture of non-variable %qE",
capture_init_expr);
if (DECL_P (capture_init_expr))
inform (DECL_SOURCE_LOCATION (capture_init_expr),
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index f7b1b0d..745c9ac 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -6753,7 +6753,7 @@ convert_nontype_argument (tree type, tree expr, tsubst_flags_t complain)
else
expr = cxx_constant_value (expr);
if (errorcount > errs || warningcount + werrorcount > warns)
- inform (loc, "in template argument for type %qT ", type);
+ inform (loc, "in template argument for type %qT", type);
if (expr == error_mark_node)
return NULL_TREE;
/* else cxx_constant_value complained but gave us