aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2009-08-24 06:17:33 +0000
committerKai Tietz <ktietz@gcc.gnu.org>2009-08-24 08:17:33 +0200
commitb241b4757b4d31f85be90cbcd205ec92e21ee864 (patch)
treeced1677b66ea165e76b0af2c3bc13b58584e74b9 /gcc/config
parente523d8bcf768ba210681f90cc2983f03f1b4d983 (diff)
downloadgcc-b241b4757b4d31f85be90cbcd205ec92e21ee864.zip
gcc-b241b4757b4d31f85be90cbcd205ec92e21ee864.tar.gz
gcc-b241b4757b4d31f85be90cbcd205ec92e21ee864.tar.bz2
Changelog gcc/
2009-08-24 Kai Tietz <kai.tietz@onevision.com> PR/40786 * c-format.c (format_wanted_type): Add new member scalar_identity_flag. (check_format_info_main): Use scalar_identify_flag. (check_format_types): Check for scalar size identity if scalar_identify_flag is set. (printf_length_specs): Extend by new field. (asm_fprintf_length_specs): Likewise. (gcc_diag_length_specs): Likewise. (scanf_length_specs): Likewise. (strfmon_length_specs): Likewise. (gcc_gfc_length_specs): Likewise. * config/i386/msformat-c.c (ms_printf_length_specs): Likewise. (ms_printf_flag_specs): Likewise. * c-format.h (format_length_info): Add new member scalar_identity_flag. Changelog gcc/testsuite 2009-08-24 Kai Tietz <kai.tietz@onevision.com> *gcc.dg/format/ms-format1.c: Add new cases for I32 width specifier. *gcc.dg/format/ms-format2.c: New test about illegal use of I32/I64 width specifier. From-SVN: r151047
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/i386/msformat-c.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/config/i386/msformat-c.c b/gcc/config/i386/msformat-c.c
index d7eb42d..020cdb3 100644
--- a/gcc/config/i386/msformat-c.c
+++ b/gcc/config/i386/msformat-c.c
@@ -36,12 +36,12 @@ along with GCC; see the file COPYING3. If not see
static format_length_info ms_printf_length_specs[] =
{
- { "h", FMT_LEN_h, STD_C89, NULL, FMT_LEN_none, STD_C89 },
- { "l", FMT_LEN_l, STD_C89, NULL, FMT_LEN_none, STD_C89 },
- { "I32", FMT_LEN_l, STD_EXT, NULL, FMT_LEN_none, STD_C89 },
- { "I64", FMT_LEN_ll, STD_EXT, NULL, FMT_LEN_none, STD_C89 },
- { "I", FMT_LEN_L, STD_EXT, NULL, FMT_LEN_none, STD_C89 },
- { NULL, FMT_LEN_none, STD_C89, NULL, FMT_LEN_none, STD_C89 }
+ { "h", FMT_LEN_h, STD_C89, NULL, FMT_LEN_none, STD_C89, 0 },
+ { "l", FMT_LEN_l, STD_C89, NULL, FMT_LEN_none, STD_C89, 0 },
+ { "I32", FMT_LEN_l, STD_EXT, NULL, FMT_LEN_none, STD_C89, 1 },
+ { "I64", FMT_LEN_ll, STD_EXT, NULL, FMT_LEN_none, STD_C89, 1 },
+ { "I", FMT_LEN_L, STD_EXT, NULL, FMT_LEN_none, STD_C89, 0 },
+ { NULL, FMT_LEN_none, STD_C89, NULL, FMT_LEN_none, STD_C89, 0 }
};
static const format_flag_spec ms_printf_flag_specs[] =