Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/sol2-c.c @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children | b7f97abdc517 |
comparison
equal
deleted
inserted
replaced
52:c156f1bd5cd9 | 55:77e2b8dfacca |
---|---|
1 /* Solaris support needed only by C/C++ frontends. | 1 /* Solaris support needed only by C/C++ frontends. |
2 Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. | 2 Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. |
3 Contributed by CodeSourcery, LLC. | 3 Contributed by CodeSourcery, LLC. |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify | 7 GCC is free software; you can redistribute it and/or modify |
34 #include "c-common.h" | 34 #include "c-common.h" |
35 | 35 |
36 /* cmn_err only accepts "l" and "ll". */ | 36 /* cmn_err only accepts "l" and "ll". */ |
37 static const format_length_info cmn_err_length_specs[] = | 37 static const format_length_info cmn_err_length_specs[] = |
38 { | 38 { |
39 { "l", FMT_LEN_l, STD_C89, "ll", FMT_LEN_ll, STD_C89 }, | 39 { "l", FMT_LEN_l, STD_C89, "ll", FMT_LEN_ll, STD_C89, 0 }, |
40 { NULL, 0, 0, NULL, 0, 0 } | 40 { NULL, FMT_LEN_none, STD_C89, NULL, FMT_LEN_none, STD_C89, 0 } |
41 }; | 41 }; |
42 | 42 |
43 static const format_flag_spec cmn_err_flag_specs[] = | 43 static const format_flag_spec cmn_err_flag_specs[] = |
44 { | 44 { |
45 { 'w', 0, 0, N_("field width"), N_("field width in printf format"), STD_C89 }, | 45 { 'w', 0, 0, N_("field width"), N_("field width in printf format"), STD_C89 }, |
46 { 'L', 0, 0, N_("length modifier"), N_("length modifier in printf format"), STD_C89 }, | 46 { 'L', 0, 0, N_("length modifier"), N_("length modifier in printf format"), STD_C89 }, |
47 { 0, 0, 0, NULL, NULL, 0 } | 47 { 0, 0, 0, NULL, NULL, STD_C89 } |
48 }; | 48 }; |
49 | 49 |
50 | 50 |
51 static const format_flag_pair cmn_err_flag_pairs[] = | 51 static const format_flag_pair cmn_err_flag_pairs[] = |
52 { | 52 { |
64 { "u", 0, STD_C89, { T89_UI, BADLEN, BADLEN, T89_UL, T9L_ULL, BADLEN, BADLEN, BADLEN, BADLEN }, "w", "", NULL }, | 64 { "u", 0, STD_C89, { T89_UI, BADLEN, BADLEN, T89_UL, T9L_ULL, BADLEN, BADLEN, BADLEN, BADLEN }, "w", "", NULL }, |
65 { "c", 0, STD_C89, { T89_C, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "w", "", NULL }, | 65 { "c", 0, STD_C89, { T89_C, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "w", "", NULL }, |
66 { "p", 1, STD_C89, { T89_V, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "w", "c", NULL }, | 66 { "p", 1, STD_C89, { T89_V, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "w", "c", NULL }, |
67 { "s", 1, STD_C89, { T89_C, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "w", "cR", NULL }, | 67 { "s", 1, STD_C89, { T89_C, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "w", "cR", NULL }, |
68 { "b", 0, STD_C89, { T89_I, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "w", "", &bitfield_string_type }, | 68 { "b", 0, STD_C89, { T89_I, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "w", "", &bitfield_string_type }, |
69 { NULL, 0, 0, NOLENGTHS, NULL, NULL, NULL } | 69 { NULL, 0, STD_C89, NOLENGTHS, NULL, NULL, NULL } |
70 }; | 70 }; |
71 | 71 |
72 const format_kind_info solaris_format_types[] = { | 72 const format_kind_info solaris_format_types[] = { |
73 { "cmn_err", cmn_err_length_specs, cmn_err_char_table, "", NULL, | 73 { "cmn_err", cmn_err_length_specs, cmn_err_char_table, "", NULL, |
74 cmn_err_flag_specs, cmn_err_flag_pairs, | 74 cmn_err_flag_specs, cmn_err_flag_pairs, |