diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2009-08-24 06:17:33 +0000 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2009-08-24 08:17:33 +0200 |
commit | b241b4757b4d31f85be90cbcd205ec92e21ee864 (patch) | |
tree | ced1677b66ea165e76b0af2c3bc13b58584e74b9 /gcc/c-format.h | |
parent | e523d8bcf768ba210681f90cc2983f03f1b4d983 (diff) | |
download | gcc-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/c-format.h')
-rw-r--r-- | gcc/c-format.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-format.h b/gcc/c-format.h index 694d2f2..9d01f0a 100644 --- a/gcc/c-format.h +++ b/gcc/c-format.h @@ -96,6 +96,10 @@ typedef struct const char *double_name; enum format_lengths double_index; enum format_std_version double_std; + + /* If this flag is set, just scalar width identity is checked, and + not the type identity itself. */ + int scalar_identity_flag; } format_length_info; |