aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@twinsun.com>1998-04-12 19:52:16 +0000
committerJeff Law <law@gcc.gnu.org>1998-04-12 13:52:16 -0600
commitbb72a0843b71be335863c0a177c612b5ffcb2b2e (patch)
tree4a100f9474ef02453ea6bf947858e68b2128c340 /gcc/combine.c
parent71922625f39fc4f5a3ae87e38810b818af878f81 (diff)
downloadgcc-bb72a0843b71be335863c0a177c612b5ffcb2b2e.zip
gcc-bb72a0843b71be335863c0a177c612b5ffcb2b2e.tar.gz
gcc-bb72a0843b71be335863c0a177c612b5ffcb2b2e.tar.bz2
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
Diffstat (limited to 'gcc/combine.c')
0 files changed, 0 insertions, 0 deletions