diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-20 22:44:50 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-20 22:44:50 +0000 |
commit | 68fee5e0afed307b1b456e994a4ef82915a7fbb6 (patch) | |
tree | d7a92cd8ec4aed354cbdea6762e9270f367f380e /gcc/optabs.c | |
parent | fdeac5cec68297213b829b922bc6dea485688a5b (diff) | |
download | gcc-68fee5e0afed307b1b456e994a4ef82915a7fbb6.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28783 138bc75d-0d04-0410-961f-82ee72b054a4
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 2de77e52f46..814a483fee4 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); |