c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.
authorJoseph Myers <jsm28@cam.ac.uk>
Tue, 17 Oct 2000 18:16:15 +0000 (19:16 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 17 Oct 2000 18:16:15 +0000 (19:16 +0100)
commitb691cb00a8cea18c8fd5df1570c2b8ad071c00a0
treee8f510f35a6c8d73058c0718e5068f2b988418fd
parent948eab23d05176dc35b82b44340b043a903353a0
c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.

* c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.
(format_types): Use it for printf.
(maybe_read_dollar_number): Add parameter for the kind of format
involved.  Warn for multiple use for arguments if this is
inappropriate for the kind of format involved.
(check_format_info_main): Update calls to maybe_read_dollar_number.

testsuite:
* gcc.dg/format-xopen-1.c: Update comments; adjust for checking
for multiple use of arguments with scanf formats; add tests for
multiple use of arguments.

From-SVN: r36905
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format-xopen-1.c