diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-08-20 22:44:50 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-08-20 22:44:50 +0000 |
commit | a4ec8d12f167413d2824ec4cb4423927ac8b9f65 (patch) | |
tree | d7a92cd8ec4aed354cbdea6762e9270f367f380e /gcc/optabs.c | |
parent | 5f06c983f3b137a2fe493e80087f2bb72b34d715 (diff) | |
download | gcc-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/optabs.c')
-rw-r--r-- | gcc/optabs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 2de77e5..814a483 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -4450,7 +4450,7 @@ init_libfuncs (optable, first_mode, last_mode, opname, suffix) for (mode = first_mode; (int) mode <= (int) last_mode; mode = (enum machine_mode) ((int) mode + 1)) { - register char *mname = mode_name[(int) mode]; + register const char *mname = GET_MODE_NAME(mode); register unsigned mname_len = strlen (mname); register char *libfunc_name = (char *) xmalloc (2 + opname_len + mname_len + 1 + 1); |