OSDN Git Service

gcc
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Apr 2008 07:42:07 +0000 (07:42 +0000)
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Apr 2008 07:42:07 +0000 (07:42 +0000)
commitd351f1373902acc5ed53a15f18b92299263e8656
tree1bf5ccf9dc81704b2e3222f660e2c18b7fdc33c0
parent8563747760384c3fc7f9190a3516b25e2fbbdb2a
gcc
* c-format.c (check_format_info_main): Use strncmp rather than a magic prefix
to handle multichar length specs.
* config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
Don't prefix "I64" and "I32" with '\0'.

testsuite
* gcc.dg/format/ms-warnI64-1.c: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134623 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-format.c
gcc/config/i386/msformat-c.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format/ms-warnI64-1.c [new file with mode: 0644]