From 0b5826acc87bbaf5c4488610ce43939d45ca5607 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sun, 23 Dec 2001 16:07:16 +0000 Subject: 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 --- gcc/gengenrtl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/gengenrtl.c') diff --git a/gcc/gengenrtl.c b/gcc/gengenrtl.c index 0d40025..157baf1 100644 --- a/gcc/gengenrtl.c +++ b/gcc/gengenrtl.c @@ -100,12 +100,12 @@ struct rtx_definition #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) { STRINGX(ENUM), NAME, FORMAT }, -const struct rtx_definition defs[] = +static const struct rtx_definition defs[] = { #include "rtl.def" /* rtl expressions are documented here */ }; -const char *formats[NUM_RTX_CODE]; +static const char *formats[NUM_RTX_CODE]; static const char *type_from_format PARAMS ((int)); static const char *accessor_from_format PARAMS ((int)); -- cgit v1.1