From 10a22b110764c1c665fa2ff5f29607bdeb8f79ba Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sun, 26 Jun 2005 21:54:24 +0000 Subject: re PR c/21911 (named parameter mistakenly identified as sentinel) PR c/21911 * c-common.c (check_function_sentinel): Pass in named argument list, skip over named arguments before looking for a sentinel. (check_function_arguments): Pass in named argument list. * c-common.h (check_function_arguments): Likewise. * c-typeck.c (build_function_call): Likewise. cp: * call.c (build_over_call): Pass in named argument list to `check_function_arguments'. * typeck.c (build_function_call): Likewise. testsuite: PR c/21911 * gcc.dg/format/sentinel-1.c: Update. Fix execl* calls. From-SVN: r101341 --- gcc/c-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/c-common.h') diff --git a/gcc/c-common.h b/gcc/c-common.h index 7fcd386..d3839b7 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -626,7 +626,7 @@ extern void finish_fname_decls (void); extern const char *fname_as_string (int); extern tree fname_decl (unsigned, tree); -extern void check_function_arguments (tree, tree); +extern void check_function_arguments (tree, tree, tree); extern void check_function_arguments_recurse (void (*) (void *, tree, unsigned HOST_WIDE_INT), -- cgit v1.1