This change is from an idea suggested by Arthur David Olson.
authorPaul Eggert <eggert@twinsun.com>
Sun, 12 Apr 1998 19:52:16 +0000 (19:52 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 12 Apr 1998 19:52:16 +0000 (13:52 -0600)
commitbb72a0843b71be335863c0a177c612b5ffcb2b2e
tree4a100f9474ef02453ea6bf947858e68b2128c340
parent71922625f39fc4f5a3ae87e38810b818af878f81
This change is from an idea suggested by Arthur David Olson.

* c-common.c (decl_attributes, record_function_format,
check_format_info, init_function_format_info):
Add support for strftime format checking.
(enum format_type): New type.
(record_function_format): Now static, and takes value of type
enum format_type instead of int.
(time_char_table): New constant.
(struct function_format_info): format_type member renamed from is_scan.
(check_format_info): Use `warning' rather than sprintf followed by
`warning', to avoid mishandling `%' in warnings.
Change `pedwarn' to `warning', since these warnings do not necessarily
mean the program does not conform to the C Standard, as the code
need not be executed.
* c-tree.h (record_function_format): Remove decl; no longer extern.
* extend.texi: Add documentation for strftime format checking.

From-SVN: r19151
gcc/ChangeLog
gcc/c-common.c
gcc/c-tree.h
gcc/extend.texi