]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-common.c
* c-common.c (enum format_type): Add strfmon_format_type.
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Dec 2000 18:48:05 +0000 (18:48 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Dec 2000 18:48:05 +0000 (18:48 +0000)
commit6a87209c266f743831c004f71672ffee95eb2518
tree00f35d5d934df665f2c3bad29a53e2cb1f7433ae
parentf962b368e6e27276ae40939c40cf1d7aeec7d9cf
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38512 138bc75d-0d04-0410-961f-82ee72b054a4
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