gcc:
commit3e038b9d4bbcda05f1647a519494600f6c5b39f2
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Jun 2003 00:31:21 +0000 (30 00:31 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Jun 2003 00:31:21 +0000 (30 00:31 +0000)
tree8a17e7fe4aba72658d0e9aef9464d1878f0b087b
parent6c60929087b2ef567ada42c08c6ba2321610d599
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.

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