]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/c/c-decl.c
gcc/ada/ChangeLog:
[thirdparty/gcc.git] / gcc / c / c-decl.c
index c8e7cd01d9ec1abe5c6255ea2f41b282b474e0f0..181a8c2e9aa0c8f758a5fbb1cd603fa4eabe999d 100644 (file)
@@ -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
     {