summaryrefslogtreecommitdiff
path: root/gcc/config/sol2-c.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-17 22:07:46 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-17 22:07:46 +0000
commit99dc6a64df2d07352931aef12364d3b4a200f929 (patch)
tree29b960a466f572a1131b689d972ec8b615681fd0 /gcc/config/sol2-c.c
parent6d54e88630b18e7610bad2881af7c8230a1cc916 (diff)
downloadgcc-99dc6a64df2d07352931aef12364d3b4a200f929.tar.gz
* 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
Diffstat (limited to 'gcc/config/sol2-c.c')
-rw-r--r--gcc/config/sol2-c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/sol2-c.c b/gcc/config/sol2-c.c
index 5e835107e7c..69426a4596b 100644
--- a/gcc/config/sol2-c.c
+++ b/gcc/config/sol2-c.c
@@ -1,5 +1,5 @@
/* Solaris support needed only by C/C++ frontends.
- Copyright (C) 2004, 2005 , 2007 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
Contributed by CodeSourcery, LLC.
This file is part of GCC.
@@ -73,7 +73,7 @@ const format_kind_info solaris_format_types[] = {
{ "cmn_err", cmn_err_length_specs, cmn_err_char_table, "", NULL,
cmn_err_flag_specs, cmn_err_flag_pairs,
FMT_FLAG_ARG_CONVERT|FMT_FLAG_EMPTY_PREC_OK,
- 'w', 0, 0, 0, 'L',
+ 'w', 0, 0, 0, 'L', 0,
&integer_type_node, &integer_type_node
}
};