diff options
author | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-24 06:17:33 +0000 |
---|---|---|
committer | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-24 06:17:33 +0000 |
commit | 6794f93d5f1b260f35e9bef4f8ae1e1631667380 (patch) | |
tree | ced1677b66ea165e76b0af2c3bc13b58584e74b9 /gcc/config/i386/msformat-c.c | |
parent | 1cc51d4d0164baa1f4e8d86699c3243363ae3c44 (diff) | |
download | gcc-6794f93d5f1b260f35e9bef4f8ae1e1631667380.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151047 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/msformat-c.c')
-rw-r--r-- | gcc/config/i386/msformat-c.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/config/i386/msformat-c.c b/gcc/config/i386/msformat-c.c index d7eb42d9c3c..020cdb3c897 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[] = |