diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-07 16:51:11 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-07 16:51:11 +0000 |
commit | e99c3a1d0a11dad2e2b51f061ad4d3c0a98b67b6 (patch) | |
tree | d04fec1eb92b81beff3e31812e987a40cf880773 /gcc/c-format.c | |
parent | 3bd67e9ceee5b55bc1fcd95eb47d239865de3d37 (diff) | |
download | gcc-e99c3a1d0a11dad2e2b51f061ad4d3c0a98b67b6.tar.gz |
* builtins.c (expand_builtin_setjmp_receiver): Const-ify.
* c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
Likewise.
* c-dump.c (dump_option_value_info): Likewise.
* c-format.c (format_length_info, format_char_info,
format_flag_spec, format_flag_pair, format_kind_info): Likewise.
* collect2.c (names): Likewise.
* cppdefault.h (default_include): Likewise.
* cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
* flow.c (life_analysis): Likewise.
* gcc.c (dir_separator_str, modify_target, option_map,
target_option_translations, spec_list_1, extra_specs_1,
init_spec): Likewise.
* gcov.c (gcov_version_string): Likewise.
* genattr.c (write_units): Likewise.
* genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
* gengenrtl.c (rtx_definition, defs): Likewise.
* genrecog.c (pred_table): Likewise.
* global.c (global_alloc): Likewise.
* lcm.c (optimize_mode_switching): Likewise.
* local-alloc.c (find_free_reg): Likewise.
* params.h (param_info): Likewise.
* predict.c (predictor_info): Likewise.
* protoize.c (unexpansion_struct): Likewise.
* real.c (bmask): Likewise.
* recog.h (insn_operand_data, insn_data): Likewise.
* regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
* stmt.c (expand_nl_goto_receiver): Likewise.
* toplev.c (da, debug_args, lang_opt, documented_lang_options,
target_switches, target_options): Likewise.
* tradcif.y (token, tokentab2, yylex): Likewise.
* tree.h (attribute_spec): Likewise.
* alpha.c (override_options, alpha_lookup_xfloating_lib_func):
Likewise.
* arc.c (arc_output_function_epilogue): Likewise.
* arm.c (processors, all_cores, all_architectures,
arm_override_options, isr_attribute_arg, isr_attribute_args,
arm_isr_value): Likewise.
* avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
Likewise.
* c4x.c (c4x_int_reglist): Likewise.
* d30v.c (override_options): Likewise.
* h8300.c (shift_insn): Likewise.
* i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
* i386.h (processor_costs, ix86_cost): Likewise.
* m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
* m68hc11.h (processor_costs, m68hc11_cost): Likewise.
* m68k.c (codes_68881, codes_FPA): Likewise.
* m88k.c (mode_from_align, max_from_align, all_from_align,
best_from_align, m_options): Likewise.
* m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
* mcore.c (mode_from_align): Likewise.
* mips/elf64.h (UNIQUE_SECTION): Likewise.
* mips/iris6gld.h (UNIQUE_SECTION): Likewise.
* mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
* mips.h (mips_regno_to_class): Likewise.
* ns32k.c (scales): Likewise.
* pa.c (import_string, magic_milli): Likewise.
* rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
* sparc.c (leaf_reg_remap, sparc_override_options,
reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
Likewise.
* sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
cp:
* class.c (build_vtable_entry_ref): Const-ify.
* decl.c (predefined_identifier,
initialize_predefined_identifiers): Likewise.
* init.c (build_new_1): Likewise.
* lex.c (cplus_tree_code_type, cplus_tree_code_length, resword):
Likewise.
f:
* bad.c (_ffebad_message_, ffebad_messages_): Const-ify.
* bld.c (ffebld_arity_op_): Likewise.
* bld.h (ffebld_arity_op_): Likewise.
* com.c (ffecom_init_0): Likewise.
* intdoc.c (_ffeintrin_name_, _ffeintrin_gen_, _ffeintrin_spec_,
_ffeintrin_imp_, names, gens, imps, specs, cc_pair,
cc_descriptions, cc_summaries): Likewise.
* intrin.c (_ffeintrin_name_, _ffeintrin_gen_, _ffeintrin_spec_,
_ffeintrin_imp_, ffeintrin_names_, ffeintrin_gens_,
ffeintrin_imps_, ffeintrin_specs_): Likewise.
java:
* jcf-io.c (format_uint): Const-ify.
* lang.c (java_tree_code_type, java_tree_code_length): Likewise.
* lex.c (java_get_line_col): Likewise.
* parse.y (build_incdec): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46062 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-format.c')
-rw-r--r-- | gcc/c-format.c | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/gcc/c-format.c b/gcc/c-format.c index ea6ef57fa6d..19bbccec79f 100644 --- a/gcc/c-format.c +++ b/gcc/c-format.c @@ -387,15 +387,15 @@ enum typedef struct { /* Name of the single-character length modifier. */ - const char *name; + const char *const name; /* Index into a format_char_info.types array. */ - enum format_lengths index; + const enum format_lengths index; /* Standard version this length appears in. */ - enum format_std_version std; + const enum format_std_version std; /* Same, if the modifier can be repeated, or NULL if it can't. */ - const char *double_name; - enum format_lengths double_index; - enum format_std_version double_std; + const char *const double_name; + const enum format_lengths double_index; + const enum format_std_version double_std; } format_length_info; @@ -424,18 +424,18 @@ typedef struct which act identically), and the length modifiers used with it. */ typedef struct { - const char *format_chars; - int pointer_count; - enum format_std_version std; + const char *const format_chars; + const int pointer_count; + const enum format_std_version std; /* Types accepted for each length modifier. */ - format_type_detail types[FMT_LEN_MAX]; + const format_type_detail types[FMT_LEN_MAX]; /* List of other modifier characters allowed with these specifiers. This lists flags, and additionally "w" for width, "p" for precision (right precision, for strfmon), "#" for left precision (strfmon), "a" for scanf "a" allocation extension (not applicable in C99 mode), "*" for scanf suppression, and "E" and "O" for those strftime modifiers. */ - const char *flag_chars; + const char *const flag_chars; /* List of additional flags describing these conversion specifiers. "c" for generic character pointers being allowed, "2" for strftime two digit year formats, "3" for strftime formats giving two digit @@ -445,7 +445,7 @@ typedef struct "R" if the argument is a pointer which is dereferenced and read from, "i" for printf integer formats where the '0' flag is ignored with precision, and "[" for the starting character of a scanf scanset. */ - const char *flags2; + const char *const flags2; } format_char_info; @@ -453,7 +453,7 @@ typedef struct typedef struct { /* The flag character in question (0 for end of array). */ - int flag_char; + const int flag_char; /* Zero if this entry describes the flag character in general, or a non-zero character that may be found in flags2 if it describes the flag when used with certain formats only. If the latter, only @@ -462,18 +462,18 @@ typedef struct will be used, if non-NULL and the standard version is higher than the unpredicated one, for any pedantic warning. For example, 'o' for strftime formats (meaning 'O' is an extension over C99). */ - int predicate; + const int predicate; /* Nonzero if the next character after this flag in the format should be skipped ('=' in strfmon), zero otherwise. */ - int skip_next_char; + const int skip_next_char; /* The name to use for this flag in diagnostic messages. For example, N_("`0' flag"), N_("field width"). */ - const char *name; + const char *const name; /* Long name for this flag in diagnostic messages; currently only used for "ISO C does not support ...". For example, N_("the `I' printf flag"). */ - const char *long_name; + const char *const long_name; /* The standard version in which it appeared. */ - enum format_std_version std; + const enum format_std_version std; } format_flag_spec; @@ -482,16 +482,16 @@ typedef struct typedef struct { /* The first flag character in question (0 for end of array). */ - int flag_char1; + const int flag_char1; /* The second flag character. */ - int flag_char2; + const int flag_char2; /* Non-zero if the message should say that the first flag is ignored with the second, zero if the combination should simply be objected to. */ - int ignored; + const int ignored; /* Zero if this entry applies whenever this flag combination occurs, a non-zero character from flags2 if it only applies in some circumstances (e.g. 'i' for printf formats ignoring 0 with precision). */ - int predicate; + const int predicate; } format_flag_pair; @@ -500,43 +500,43 @@ typedef struct { /* The name of this kind of format, for use in diagnostics. Also the name of the attribute (without preceding and following __). */ - const char *name; + const char *const name; /* Specifications of the length modifiers accepted; possibly NULL. */ - const format_length_info *length_char_specs; + const format_length_info *const length_char_specs; /* Details of the conversion specification characters accepted. */ - const format_char_info *conversion_specs; + const format_char_info *const conversion_specs; /* String listing the flag characters that are accepted. */ - const char *flag_chars; + const char *const flag_chars; /* String listing modifier characters (strftime) accepted. May be NULL. */ - const char *modifier_chars; + const char *const modifier_chars; /* Details of the flag characters, including pseudo-flags. */ - const format_flag_spec *flag_specs; + const format_flag_spec *const flag_specs; /* Details of bad combinations of flags. */ - const format_flag_pair *bad_flag_pairs; + const format_flag_pair *const bad_flag_pairs; /* Flags applicable to this kind of format. */ - int flags; + const int flags; /* Flag character to treat a width as, or 0 if width not used. */ - int width_char; + const int width_char; /* Flag character to treat a left precision (strfmon) as, or 0 if left precision not used. */ - int left_precision_char; + const int left_precision_char; /* Flag character to treat a precision (for strfmon, right precision) as, or 0 if precision not used. */ - int precision_char; + const int precision_char; /* If a flag character has the effect of suppressing the conversion of an argument ('*' in scanf), that flag character, otherwise 0. */ - int suppression_char; + const int suppression_char; /* Flag character to treat a length modifier as (ignored if length modifiers not used). Need not be placed in flag_chars for conversion specifiers, but is used to check for bad combinations such as length modifier with assignment suppression in scanf. */ - int length_code_char; + const int length_code_char; /* Pointer to type of argument expected if '*' is used for a width, or NULL if '*' not used for widths. */ - tree *width_type; + tree *const width_type; /* Pointer to type of argument expected if '*' is used for a precision, or NULL if '*' not used for precisions. */ - tree *precision_type; + tree *const precision_type; } format_kind_info; |