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/machmode.h | |
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/machmode.h')
-rw-r--r-- | gcc/machmode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h index 581400700ac..756559181ea 100644 --- a/gcc/machmode.h +++ b/gcc/machmode.h @@ -56,7 +56,7 @@ MAX_MACHINE_MODE }; /* Get the name of mode MODE as a string. */ -extern char *mode_name[]; +extern const char * const mode_name[]; #define GET_MODE_NAME(MODE) (mode_name[(int) (MODE)]) enum mode_class { MODE_RANDOM, MODE_INT, MODE_FLOAT, MODE_PARTIAL_INT, MODE_CC, |