summaryrefslogtreecommitdiffstats
path: root/gcc/config/m68k
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-23 16:07:16 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-23 16:07:16 +0000
commite7c691ace7aca0c93f895d1429c3d0f230ce6d58 (patch)
tree3a92e39c3950a0111e36bf45eea110d72fbf1e8a /gcc/config/m68k
parenta9a8096c82e4c6042c543cac74ba997302422f68 (diff)
downloadppe42-gcc-e7c691ace7aca0c93f895d1429c3d0f230ce6d58.tar.gz
ppe42-gcc-e7c691ace7aca0c93f895d1429c3d0f230ce6d58.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48290 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/m68k')
-rw-r--r--gcc/config/m68k/m68k.c2
-rw-r--r--gcc/config/m68k/m68k.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c
index 9e6880b9934..42c4f7cc287 100644
--- a/gcc/config/m68k/m68k.c
+++ b/gcc/config/m68k/m68k.c
@@ -47,7 +47,7 @@ Boston, MA 02111-1307, USA. */
/* Index into this array by (register number >> 3) to find the
smallest class which contains that register. */
-enum reg_class regno_reg_class[]
+const enum reg_class regno_reg_class[]
= { DATA_REGS, ADDR_REGS, FP_REGS,
LO_FPA_REGS, LO_FPA_REGS, FPA_REGS, FPA_REGS };
diff --git a/gcc/config/m68k/m68k.h b/gcc/config/m68k/m68k.h
index 2d422a07c17..76b10b02761 100644
--- a/gcc/config/m68k/m68k.h
+++ b/gcc/config/m68k/m68k.h
@@ -749,7 +749,7 @@ enum reg_class { NO_REGS, LO_FPA_REGS, FPA_REGS, FP_REGS,
reg number REGNO. This could be a conditional expression
or could index an array. */
-extern enum reg_class regno_reg_class[];
+extern const enum reg_class regno_reg_class[];
#define REGNO_REG_CLASS(REGNO) (regno_reg_class[(REGNO)>>3])
#endif /* SUPPORT_SUN_FPA */
OpenPOWER on IntegriCloud