]> git.ipfire.org Git - thirdparty/gcc.git/commit
* c-format.h (format_kind_info): Add alloc_char field.
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Sep 2007 22:07:46 +0000 (22:07 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Sep 2007 22:07:46 +0000 (22:07 +0000)
commit99dc6a64df2d07352931aef12364d3b4a200f929
tree29b960a466f572a1131b689d972ec8b615681fd0
parent6d54e88630b18e7610bad2881af7c8230a1cc916
* c-format.h (format_kind_info): Add alloc_char field.
* c-format.c (scanf_flag_specs): Add 'm'.
(scanf_flag_pairs): Add 'a', 'm' pair.
(scan_char_table): Allow 'm' modifier for c, s, [, C and S.
(format_types_orig): Add alloc_char fields.
(check_format_info_main): Rename aflag to alloc_flag.
Handle fki->alloc_char. modifier after width and before length
modifiers.  Move FMT_FLAG_SCANF_A_KLUDGE handling before
length modifiers as well.
* config/sol2-c.c (solaris_format_types): Add alloc_char field.

* gcc.dg/format/c90-scanf-5.c: New test.
* gcc.dg/format/c99-scanf-4.c: New test.
* gcc.dg/format/ext-7.c: New test.
* gcc.dg/format/ext-8.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128555 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-format.c
gcc/c-format.h
gcc/config/sol2-c.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format/c90-scanf-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/format/c99-scanf-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/format/ext-7.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/format/ext-8.c [new file with mode: 0644]