c-common.h (flag_isoc94): Declare.
authorJoseph Myers <jsm28@cam.ac.uk>
Fri, 4 Aug 2000 16:10:14 +0000 (17:10 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 4 Aug 2000 16:10:14 +0000 (17:10 +0100)
commitb8458e3e8b0db246af9f1a7c3fe65d8cf88413b3
tree4b719a27657bcbad494e3fbe0f70a91f8a9f0e2b
parentc5ab7f91109e1569bb63c38e2e35e701e5af17ec
c-common.h (flag_isoc94): Declare.

* c-common.h (flag_isoc94): Declare.
* c-decl.c (flag_isoc94): Define.
(c_decode_option): Set flag_isoc94 as appropriate.
* c-common.c (T_PD, T_IM, T_UIM): Define.
(format_char_info): Add tlen and jlen.
(print_char_table): Add entries for %t and %j.  Allow %zn.  Allow
%F.  Allow %lf.
(scan_char_table): Add entries for %t and %j.  Allow %F.  Allow
%l[.
(time_char_table): Add NULL entries for %t and %j.
(check_format_info): Allow for %t and %j.  Warn for %F if pedantic
and not C99.  Warn for %lc, %ls and %l[ if pedantic and not C94.
Warn for printf %lf if pedantic and not C99.  Don't warn for empty
precision.  Allow precision argument to be unsigned int.  If
pedantic, warn for %p passed an argument not a pointer to possibly
qualified void or a possibly qualified character type, and for
pointer targets of the wrong sign, except for character pointers.

cp:
* decl.c (flag_isoc94): New variable.

testsuite:
* gcc.dg/c90-printf-1.c, gcc.dg/c94-printf-1.c: New tests.

From-SVN: r35482
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c90-printf-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/c94-printf-1.c [new file with mode: 0644]