From c083a819b26a58d8a6caa58e15c5e8821bff01eb Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Thu, 27 Dec 2001 03:35:21 +0000 Subject: collect2.c (is_ctor_dtor): Const-ify. * collect2.c (is_ctor_dtor): Const-ify. * m88k-protos.c (output_file_start): Likewise. * m88k.c (m88k_lang_independent_options, output_options, output_file_start): Likewise. * fix-header.c (files_to_ignore, std_include_entry, include_entry, std_include_table, main): Likewise. * protoize.c (longopts): Likewise. * regclass.c (int_reg_class_contents): Likewise. * toplev.c (dump_file, f_options, W_options): Make static. (lang_independent_options, f_options, W_options): Const-ify. * tree-dump.c (dump_file_info): Likewise. * unroll.c (_factor): Make static. java: * chartables.h: Const-ify. * gjavah.c (options): Likewise. * jcf-dump.c (options): Likewise. * jv-scan.c (options): Likewise. * lex.c (java_start_char_p, java_part_char_p): Likewise. * parse.y (binop_lookup): Likewise. From-SVN: r48322 --- gcc/toplev.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index bab08c8..e617816 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -280,7 +280,7 @@ enum dump_file_index " H JK OPQ TUV YZ" */ -struct dump_file_info dump_file[DFI_MAX] = +static struct dump_file_info dump_file[DFI_MAX] = { { "rtl", 'r', 0, 0, 0 }, { "sibling", 'i', 0, 0, 0 }, @@ -940,10 +940,10 @@ debug_args[] = typedef struct { - const char *string; - int *variable; - int on_value; - const char *description; + const char *const string; + int *const variable; + const int on_value; + const char *const description; } lang_independent_options; @@ -974,7 +974,7 @@ static const param_info lang_independent_params[] = { if `-fSTRING' is seen as an option. (If `-fno-STRING' is seen as an option, the opposite value is stored.) */ -lang_independent_options f_options[] = +static const lang_independent_options f_options[] = { {"eliminate-dwarf2-dups", &flag_eliminate_dwarf2_dups, 1, N_("Perform DWARF2 duplicate elimination") }, @@ -1466,7 +1466,7 @@ int warn_missing_noreturn; /* Likewise for -W. */ -lang_independent_options W_options[] = +static const lang_independent_options W_options[] = { {"unused-function", &warn_unused_function, 1, N_("Warn when a function is unused") }, -- cgit v1.1