Skip to content

Commit c106443

Browse files
alejandro-colomarjsm28
authored andcommitted
gcc/: Rename warn_parm_array_mismatch() => warn_parms_array_mismatch()
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>
1 parent 0983945 commit c106443

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

gcc/c-family/c-common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1624,7 +1624,7 @@ extern void c_do_switch_warnings (splay_tree, location_t, tree, tree, bool);
16241624
extern void warn_for_omitted_condop (location_t, tree);
16251625
extern bool warn_for_restrict (unsigned, tree *, unsigned);
16261626
extern void warn_for_address_of_packed_member (tree, tree);
1627-
extern void warn_parm_array_mismatch (location_t, tree, tree);
1627+
extern void warn_parms_array_mismatch (location_t, tree, tree);
16281628
extern void maybe_warn_sizeof_array_div (location_t, tree, tree, tree, tree);
16291629
extern void do_warn_array_compare (location_t, tree_code, tree, tree);
16301630

gcc/c-family/c-warn.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3431,7 +3431,7 @@ expr_to_str (pretty_printer &pp, tree expr, const char *dflt)
34313431
(FNDECL's is set to the location of the redeclaration). */
34323432

34333433
void
3434-
warn_parm_array_mismatch (location_t origloc, tree fndecl, tree newparms)
3434+
warn_parms_array_mismatch (location_t origloc, tree fndecl, tree newparms)
34353435
{
34363436
/* The original parameter list (copied from the original declaration
34373437
into the current [re]declaration, FNDECL)). The two are equal if

gcc/c/c-decl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10920,7 +10920,7 @@ start_function (struct c_declspecs *declspecs, struct c_declarator *declarator,
1092010920
if (old_decl)
1092110921
{
1092210922
location_t origloc = DECL_SOURCE_LOCATION (old_decl);
10923-
warn_parm_array_mismatch (origloc, old_decl, parms);
10923+
warn_parms_array_mismatch (origloc, old_decl, parms);
1092410924
}
1092510925

1092610926
/* To enable versions to be created across TU's we mark and mangle all

gcc/c/c-parser.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3013,7 +3013,7 @@ c_parser_declaration_or_fndef (c_parser *parser, bool fndef_ok,
30133013
&& DECL_INITIAL (d) == NULL_TREE)
30143014
DECL_ARGUMENTS (d) = parms;
30153015

3016-
warn_parm_array_mismatch (lastloc, d, parms);
3016+
warn_parms_array_mismatch (lastloc, d, parms);
30173017
}
30183018
}
30193019
if (omp_declare_simd_clauses

0 commit comments

Comments
 (0)