diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-12-23 16:07:16 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-12-23 16:07:16 +0000 |
commit | 0b5826acc87bbaf5c4488610ce43939d45ca5607 (patch) | |
tree | 3a92e39c3950a0111e36bf45eea110d72fbf1e8a /gcc/reload1.c | |
parent | 14aacce76e18b19ea57b6f6dbeda4cad4b634b1a (diff) | |
download | gcc-0b5826acc87bbaf5c4488610ce43939d45ca5607.zip gcc-0b5826acc87bbaf5c4488610ce43939d45ca5607.tar.gz gcc-0b5826acc87bbaf5c4488610ce43939d45ca5607.tar.bz2 |
arc.c (arc_hard_regno_mode_ok): Const-ify.
* arc.c (arc_hard_regno_mode_ok): Const-ify.
* arc.h (arc_hard_regno_mode_ok): Likewise.
* i386.c (x86_64_reg_class_name): Make static.
* m68k.c (regno_reg_class): Const-ify.
* m68k.h (regno_reg_class): Likewise.
* mcore.c (reg_class_from_letter): Likewise.
* mcore.h (reg_class_from_letter): Likewise.
* sh.c (reg_class_from_letter, ashiftrt_insns, shift_insns,
ext_shift_insns, ext_shift_amounts): Likewise.
* sh.h (reg_class_from_letter): Likewise.
* sparc.c (hard_regno_mode_classes, hard_32bit_mode_classes,
hard_64bit_mode_classes): Likewise.
* sparc.h (hard_regno_mode_classes): Likewise.
* gcc.c (modify_target): Make static.
* gengenrtl.c (defs, formats): Likewise.
* reload1.c (elim_table_1, init_elim_table): Const-ify.
* tradcpp.c (directive, directive_table, handle_directive,
skip_if_group, run_directive): Likewise.
cp:
* decl2.c (lang_f_options): Const-ify.
f:
* com.c (ffecom_gfrt_volatile_, ffecom_gfrt_complex_,
ffecom_gfrt_const_, ffecom_gfrt_type_): Const-ify.
java:
* Make-lang.in (keyword.h): Pass -C to gperf to const-ify
the static arrays that are output.
* jvspec.c (jvgenmain_spec): Make static.
* keyword.gperf (struct java_keyword, java_keyword): Const-ify.
* keyword.h: Regenerate.
* lang.c (string_option, process_option_with_no, lang_f_options,
lang_W_options): Const-ify.
* lex.c (java_lex): Likewise.
From-SVN: r48290
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r-- | gcc/reload1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c index 0f41718..451a090 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -323,10 +323,10 @@ static struct elim_table *reg_eliminate = 0; /* This is an intermediate structure to initialize the table. It has exactly the members provided by ELIMINABLE_REGS. */ -static struct elim_table_1 +static const struct elim_table_1 { - int from; - int to; + const int from; + const int to; } reg_eliminate_1[] = /* If a set of eliminable registers was specified, define the table from it. @@ -3486,7 +3486,7 @@ init_elim_table () { struct elim_table *ep; #ifdef ELIMINABLE_REGS - struct elim_table_1 *ep1; + const struct elim_table_1 *ep1; #endif if (!reg_eliminate) |