]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
init.c (warn_placement_new_too_small): Add missing space in diagnostics.
authorJakub Jelinek <jakub@redhat.com>
Mon, 13 Feb 2017 21:54:01 +0000 (22:54 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 13 Feb 2017 21:54:01 +0000 (22:54 +0100)
* init.c (warn_placement_new_too_small): Add missing space in
diagnostics.
* parser.c (cp_parser_oacc_declare): Likewise.
* mangle.c (maybe_check_abi_tags): Likewise.

From-SVN: r245407

gcc/cp/ChangeLog
gcc/cp/init.c
gcc/cp/mangle.c
gcc/cp/parser.c

index 3fffb5b04b6ff60ab5612f4753af5873bb480162..994492be7d946499b964c06a4ca583d84b7fc3af 100644 (file)
@@ -1,5 +1,10 @@
 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
 
+       * init.c (warn_placement_new_too_small): Add missing space in
+       diagnostics.
+       * parser.c (cp_parser_oacc_declare): Likewise.
+       * mangle.c (maybe_check_abi_tags): Likewise.
+
        PR c++/79232
        * typeck.c (cp_build_modify_expr): Handle properly COMPOUND_EXPRs
        on lhs that have {PRE{DEC,INC}REMENT,MODIFY,MIN,MAX,COND}_EXPR
index 524c583138f3e5cf7eb6ab05ad97e27c4c033642..c8fb33995708dca2843103d945b657ee2c6de6d3 100644 (file)
@@ -2606,7 +2606,7 @@ warn_placement_new_too_small (tree type, tree nelts, tree size, tree oper)
                        exact_size ?
                        "placement new constructing an object of type %qT "
                        "and size %qwu in a region of type %qT and size %qwi"
-                       : "placement new constructing an object of type %qT"
+                       : "placement new constructing an object of type %qT "
                        "and size %qwu in a region of type %qT and size "
                        "at most %qwu",
                        type, bytes_need, TREE_TYPE (oper),
index 38b6a6357044af4c7308dd7c4fef4ba1006fdffa..3ead33e4bfa403dc67440e811696a9ca1afbce6f 100644 (file)
@@ -4274,8 +4274,9 @@ maybe_check_abi_tags (tree t, tree for_decl, int ver)
                    for_decl, flag_abi_version, warn_abi_version);
       else
        warning_at (DECL_SOURCE_LOCATION (t), OPT_Wabi,
-                   "the mangled name of the initialization guard variable for"
-                   "%qD changes between -fabi-version=%d and -fabi-version=%d",
+                   "the mangled name of the initialization guard variable "
+                   "for %qD changes between -fabi-version=%d and "
+                   "-fabi-version=%d",
                    t, flag_abi_version, warn_abi_version);
     }
 }
index 8812f8ce77b2f3107d1d306eb3154ece66b651ca..ce45bbaedea057bf95630587b60d1fad0b3670b0 100644 (file)
@@ -36177,7 +36177,7 @@ cp_parser_oacc_declare (cp_parser *parser, cp_token *pragma_tok)
               || !DECL_EXTERNAL (decl)))
            {
              error_at (loc,
-                       "%qD must be a global variable in"
+                       "%qD must be a global variable in "
                        "%<#pragma acc declare link%>",
                        decl);
              error = true;