]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc/: Rename warn_parm_array_mismatch() => warn_parms_array_mismatch()
authorAlejandro Colomar <alx@kernel.org>
Sun, 2 Nov 2025 18:45:29 +0000 (19:45 +0100)
committerJoseph Myers <josmyers@redhat.com>
Tue, 4 Nov 2025 18:03:57 +0000 (18:03 +0000)
This function acts on entire parameter declaration lists, and iterates
over them.  Use plural in the name, to clarify that it acts on
parameters, not just on a single parameter.

gcc/c-family/ChangeLog:

* c-common.h (warn_parm_array_mismatch):
Rename warn_parm_array_mismatch => warn_parms_array_mismatch.
* c-warn.cc (warn_parm_array_mismatch):
Rename warn_parm_array_mismatch => warn_parms_array_mismatch.

gcc/c/ChangeLog:

* c-decl.cc (start_function):
Rename warn_parm_array_mismatch => warn_parms_array_mismatch.
* c-parser.cc (c_parser_declaration_or_fndef):
Rename warn_parm_array_mismatch => warn_parms_array_mismatch.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
gcc/c-family/c-common.h
gcc/c-family/c-warn.cc
gcc/c/c-decl.cc
gcc/c/c-parser.cc

index bedbd4a94b0efff7c51d012c6200de0c1518bea2..8b7f4ae44717196f1944b67b708f93925f44fc95 100644 (file)
@@ -1624,7 +1624,7 @@ extern void c_do_switch_warnings (splay_tree, location_t, tree, tree, bool);
 extern void warn_for_omitted_condop (location_t, tree);
 extern bool warn_for_restrict (unsigned, tree *, unsigned);
 extern void warn_for_address_of_packed_member (tree, tree);
-extern void warn_parm_array_mismatch (location_t, tree, tree);
+extern void warn_parms_array_mismatch (location_t, tree, tree);
 extern void maybe_warn_sizeof_array_div (location_t, tree, tree, tree, tree);
 extern void do_warn_array_compare (location_t, tree_code, tree, tree);
 
index 09517d28ba11fda9678ffbd955d985cf6605be7e..a771444184fc5b427a762a65976028c6edfb338a 100644 (file)
@@ -3431,7 +3431,7 @@ expr_to_str (pretty_printer &pp, tree expr, const char *dflt)
    (FNDECL's is set to the location of the redeclaration).  */
 
 void
-warn_parm_array_mismatch (location_t origloc, tree fndecl, tree newparms)
+warn_parms_array_mismatch (location_t origloc, tree fndecl, tree newparms)
 {
   /* The original parameter list (copied from the original declaration
      into the current [re]declaration, FNDECL)).  The two are equal if
index 1e1da2d2a35f4593d6322874f2e456f10c151dd1..0a368e410e5730ca7eb81afca633afa0f3ee3265 100644 (file)
@@ -10920,7 +10920,7 @@ start_function (struct c_declspecs *declspecs, struct c_declarator *declarator,
   if (old_decl)
     {
       location_t origloc = DECL_SOURCE_LOCATION (old_decl);
-      warn_parm_array_mismatch (origloc, old_decl, parms);
+      warn_parms_array_mismatch (origloc, old_decl, parms);
     }
 
   /* To enable versions to be created across TU's we mark and mangle all
index 9b3a7861dfae8413119f3a6d56f1fdaf20bc8054..d8b7beea92331f23d782527f5e7d3a21af06aabf 100644 (file)
@@ -3013,7 +3013,7 @@ c_parser_declaration_or_fndef (c_parser *parser, bool fndef_ok,
                          && DECL_INITIAL (d) == NULL_TREE)
                        DECL_ARGUMENTS (d) = parms;
 
-                     warn_parm_array_mismatch (lastloc, d, parms);
+                     warn_parms_array_mismatch (lastloc, d, parms);
                    }
                }
              if (omp_declare_simd_clauses