]> gcc.gnu.org Git - gcc.git/commit - gcc/doc/invoke.texi
c-common.c (enum format_type): Add strfmon_format_type.
authorJoseph Myers <jsm28@cam.ac.uk>
Thu, 28 Dec 2000 18:48:05 +0000 (18:48 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 28 Dec 2000 18:48:05 +0000 (18:48 +0000)
commit26f6672d2ea0edf3d48934e5eedae724e3c11e9d
tree00f35d5d934df665f2c3bad29a53e2cb1f7433ae
parentdf7978d9b730b37a91ca6dc9a19c51fc8ee27da9
c-common.c (enum format_type): Add strfmon_format_type.

* c-common.c (enum format_type): Add strfmon_format_type.
(decl_attributes): Handle format attributes strfmon and
__strfmon__.
(FMT_FLAG_USE_DOLLAR, FMT_FLAG_ZERO_WIDTH_BAD,
FMT_FLAG_EMPTY_PREC_OK): Define.
(format_char_info): Update comment for flag_chars.
(format_flag_spec): Add skip_next_char.
(format_kind_info): Add left_precision_char.
(printf_flag_specs, scanf_flag_specs, strftime_flag_specs,
format_types): Update for these new structure members and flags.
(time_char_table): Make const.
(strfmon_length_specs, strfmon_flag_specs, strfmon_flag_pairs,
monetary_char_table): New.
(format_types): Add details of strfmon formats.
(init_function_format_info): Create default attribute for strfmon.
(check_format_info_main): Check the new flags.  Handle
skip_next_char and left precision.
* toplev.c (documented_lang_options): Update description of
-Wformat.
* extend.texi: Document strfmon format attributes.  Document
attribute forms such as __printf__.  Clarify format_arg attribute
documentation.
* invoke.texi (-Wformat): Update for strfmon formats.

testsuite:
* gcc.dg/format-strfmon-1.c: New test.

From-SVN: r38512
gcc/ChangeLog
gcc/c-common.c
gcc/extend.texi
gcc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format-strfmon-1.c [new file with mode: 0644]
gcc/toplev.c
This page took 0.054926 seconds and 5 git commands to generate.