diff options
Diffstat (limited to 'gcc/c/c-decl.c')
-rw-r--r-- | gcc/c/c-decl.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index c8e7cd0..181a8c2 100644 --- a/gcc/c/c-decl.c +++ b/gcc/c/c-decl.c @@ -1780,15 +1780,16 @@ diagnose_arglist_conflict (tree newdecl, tree olddecl, if (TREE_CHAIN (t) == NULL_TREE && TYPE_MAIN_VARIANT (type) != void_type_node) { - inform (input_location, "a parameter list with an ellipsis can%'t match " - "an empty parameter name list declaration"); + inform (input_location, "a parameter list with an ellipsis " + "cannot match an empty parameter name list declaration"); break; } if (c_type_promotes_to (type) != type) { - inform (input_location, "an argument type that has a default promotion can%'t match " - "an empty parameter name list declaration"); + inform (input_location, "an argument type that has a default " + "promotion cannot match an empty parameter name list " + "declaration"); break; } } @@ -4887,7 +4888,7 @@ start_decl (struct c_declarator *declarator, struct c_declspecs *declspecs, switch (TREE_CODE (decl)) { case TYPE_DECL: - error ("typedef %qD is initialized (use __typeof__ instead)", decl); + error ("typedef %qD is initialized (use %<__typeof__%> instead)", decl); initialized = false; break; @@ -5282,7 +5283,7 @@ finish_decl (tree decl, location_t init_loc, tree init, && VAR_P (decl) && !C_DECL_REGISTER (decl) && !TREE_STATIC (decl)) - warning (0, "ignoring asm-specifier for non-static local " + warning (0, "ignoring %<asm%> specifier for non-static local " "variable %q+D", decl); else set_user_assembler_name (decl, asmspec); @@ -5725,10 +5726,10 @@ warn_variable_length_array (tree name, tree size) if (name) pedwarn_c90 (input_location, OPT_Wvla, "ISO C90 forbids array %qE whose size " - "can%'t be evaluated", name); + "cannot be evaluated", name); else pedwarn_c90 (input_location, OPT_Wvla, "ISO C90 forbids array " - "whose size can%'t be evaluated"); + "whose size cannot be evaluated"); } else { |