aboutsummaryrefslogtreecommitdiff
path: root/gcc/reload1.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-08-20 22:44:50 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-08-20 22:44:50 +0000
commita4ec8d12f167413d2824ec4cb4423927ac8b9f65 (patch)
treed7a92cd8ec4aed354cbdea6762e9270f367f380e /gcc/reload1.c
parent5f06c983f3b137a2fe493e80087f2bb72b34d715 (diff)
downloadgcc-a4ec8d12f167413d2824ec4cb4423927ac8b9f65.zip
gcc-a4ec8d12f167413d2824ec4cb4423927ac8b9f65.tar.gz
gcc-a4ec8d12f167413d2824ec4cb4423927ac8b9f65.tar.bz2
machmode.h (mode_name): Constify a char*.
* machmode.h (mode_name): Constify a char*. * rtl.c (mode_name): Likewise. * genopinit.c (gen_insn): Use accessor macro, not `mode_name'. * optabs.c (init_libfuncs): Constify a char*. * print-tree.c (mode_name): Remove redundant declaration. (print_node): Use accessor macro, not `mode_name'. * reload1.c (dump_needs): Constify a char*. Use accessor macro, not `mode_name'. (new_spill_reg): Constify a char*. * tree.c (mode_name): Remove redundant declaration. From-SVN: r28783
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r--gcc/reload1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c
index e4bda8b..edaa13f 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -2031,7 +2031,7 @@ dump_needs (chain, dumpfile)
struct insn_chain *chain;
FILE *dumpfile;
{
- static char *reg_class_names[] = REG_CLASS_NAMES;
+ static const char * const reg_class_names[] = REG_CLASS_NAMES;
int i;
struct needs *n = &chain->need;
@@ -2051,7 +2051,7 @@ dump_needs (chain, dumpfile)
fprintf (dumpfile,
";; Need %d group%s (%smode) of class %s.\n",
n->groups[i], n->groups[i] == 1 ? "" : "s",
- mode_name[(int) chain->group_mode[i]],
+ GET_MODE_NAME(chain->group_mode[i]),
reg_class_names[i]);
}
}
@@ -2292,7 +2292,7 @@ new_spill_reg (chain, i, class, nongroup, dumpfile)
if (TEST_HARD_REG_BIT (bad_spill_regs, regno))
{
- static char *reg_class_names[] = REG_CLASS_NAMES;
+ static const char * const reg_class_names[] = REG_CLASS_NAMES;
if (asm_noperands (PATTERN (chain->insn)) < 0)
{