]> git.ipfire.org Git - thirdparty/gcc.git/commit
c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
authorJoseph Myers <jsm28@cam.ac.uk>
Fri, 1 Sep 2000 22:09:55 +0000 (23:09 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 1 Sep 2000 22:09:55 +0000 (23:09 +0100)
commit3c786c6945296d79a0d5f1799994aeb728aef083
tree90f159e42be0a2896231846a7d740d3767007896
parent0435a3f8cab27de41051b3a9e0fe9fa110db6c5d
c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.

* c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
(c_size_type_node): Define.
* c-decl.c (init_decl_processing): Initialize c_size_type_node.
* c-common.c (enum format_lengths, enum format_std_version,
format_length_info, format_type_detail, BADLEN, NOLENGTHS,
format_kind_info, printf_length_specs, scanf_length_specs, T89_I,
T99_I, T89_L, T99_LL, TEX_LL, T89_S, T89_UI, T99_UI, T89_UL,
T99_ULL, TEX_ULL, T89_US, T89_F, T99_F, T89_D, T99_D, T89_LD,
T99_LD, T89_C, T99_SC, T99_UC, T89_V, T94_W, TEX_W, T94_WI,
TEX_WI, T99_ST, T99_SST, T99_PD, T99_UPD, T99_IM, T99_UIM,
format_types): Define.
(format_char_info, print_char_table, scan_char_table,
time_char_table): Rearrange for new organization of information
about format length modifiers and standard versions.
(T_ST): Redefine to use c_size_type_node.
(check_format_info): Obtain information about length modifiers and
standard versions from tables.  Adjust warning message wordings.
Use the name from the user's program for `ll' and `hh' length
modifiers in warning messages.  Use more informative names for
wanted types where available (for wchar_t, wint_t, size_t, signed
size_t, ptrdiff_t, unsigned ptrdiff_t, intmax_t and uintmax_t).

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

From-SVN: r36106
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format-diag-1.c [new file with mode: 0644]