]> git.ipfire.org Git - thirdparty/gcc.git/commit
builtin-attrs.def (gcc_diag, [...]): New format attributes.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Mon, 30 Jun 2003 00:31:21 +0000 (00:31 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Mon, 30 Jun 2003 00:31:21 +0000 (00:31 +0000)
commit280c1e0d2363f8c7ad25d623123421e9b42f4722
tree8a17e7fe4aba72658d0e9aef9464d1878f0b087b
parent54bbcbd99db9ba3520ceef2912aca9c895e89bf3
builtin-attrs.def (gcc_diag, [...]): New format attributes.

gcc:
* builtin-attrs.def (gcc_diag, gcc_cdiag, gcc_cxxdiag): New
format attributes.
* c-format.c (enum format_type): Add gcc_diag_format_type,
gcc_cdiag_format_type, and gcc_cxxdiag_format_type.
(gcc_diag_length_specs, gcc_cdiag_length_specs,
gcc_cxxdiag_length_specs, gcc_diag_flag_pairs,
gcc_cdiag_flag_pairs, gcc_cxxdiag_flag_pairs, gcc_diag_flag_specs,
gcc_cdiag_flag_specs, gcc_cxxdiag_flag_specs, gcc_diag_char_table,
gcc_cdiag_char_table, gcc_cxxdiag_char_table): New.
(format_types_orig): Add new data.
(find_char_info_specifier_index, init_dynamic_diag_info): New
functions.
(handle_format_attribute): Update to handle new format attributes.

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

From-SVN: r68689
gcc/ChangeLog
gcc/builtin-attrs.def
gcc/c-format.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format/gcc_diag-1.c [new file with mode: 0644]