re PR c/21911 (named parameter mistakenly identified as sentinel)
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 26 Jun 2005 21:54:24 +0000 (21:54 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 26 Jun 2005 21:54:24 +0000 (21:54 +0000)
commit10a22b110764c1c665fa2ff5f29607bdeb8f79ba
tree41908d1e14fb3ba4c882eacbba3fca4d4f164007
parent82e5a12a581ea11e83cbd94d368e3297abda8fe2
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/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format/sentinel-1.c