OSDN Git Service

Changelog gcc/
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Aug 2009 06:17:33 +0000 (06:17 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Aug 2009 06:17:33 +0000 (06:17 +0000)
commit6794f93d5f1b260f35e9bef4f8ae1e1631667380
treeced1677b66ea165e76b0af2c3bc13b58584e74b9
parent1cc51d4d0164baa1f4e8d86699c3243363ae3c44
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
gcc/ChangeLog
gcc/c-format.c
gcc/c-format.h
gcc/config/i386/msformat-c.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format/ms-format1.c
gcc/testsuite/gcc.dg/format/ms-format2.c [new file with mode: 0644]