aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2000-09-01 23:09:55 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2000-09-01 23:09:55 +0100
commit3c786c6945296d79a0d5f1799994aeb728aef083 (patch)
tree90f159e42be0a2896231846a7d740d3767007896 /gcc/c-decl.c
parent0435a3f8cab27de41051b3a9e0fe9fa110db6c5d (diff)
downloadgcc-3c786c6945296d79a0d5f1799994aeb728aef083.zip
gcc-3c786c6945296d79a0d5f1799994aeb728aef083.tar.gz
gcc-3c786c6945296d79a0d5f1799994aeb728aef083.tar.bz2
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
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 6820ced..6482359 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -3016,6 +3016,7 @@ init_decl_processing ()
if (flag_traditional && TREE_UNSIGNED (t))
t = signed_type (t);
+ c_size_type_node = t;
set_sizetype (t);
/* Create the widest literal types. */