From 9cef5f55ffde40dd3a9e125bf5d270416ab2377a Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 18 Sep 2007 00:07:46 +0200 Subject: c-format.h (format_kind_info): Add alloc_char field. * 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. From-SVN: r128555 --- gcc/config/sol2-c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/config/sol2-c.c') diff --git a/gcc/config/sol2-c.c b/gcc/config/sol2-c.c index 5e83510..69426a4 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 } }; -- cgit v1.1