summaryrefslogtreecommitdiff
path: root/gcc/rtl.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-20 23:11:19 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-20 23:11:19 +0000
commit66e6c35033e1a29945e01f028fbd7b59c1b9476e (patch)
tree12bd99171720a7b9d5c2e07a292d53b6c85c1516 /gcc/rtl.c
parentd2ca078f8e29e5c5e212e8cf003ec0890d1b7de7 (diff)
downloadgcc-66e6c35033e1a29945e01f028fbd7b59c1b9476e.tar.gz
* rtl.c (rtx_class, note_insn_name, reg_note_name): Constify.
* rtl.h (rtx_class, reg_note_name, note_insn_name): Likewise. * genopinit.c (gen_insn): Use accessor macro, not `rtx_class'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28785 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtl.c')
-rw-r--r--gcc/rtl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/rtl.c b/gcc/rtl.c
index 49f60353810..bf997509f78 100644
--- a/gcc/rtl.c
+++ b/gcc/rtl.c
@@ -167,7 +167,7 @@ const char *rtx_format[] = {
/* Indexed by rtx code, gives a character representing the "class" of
that rtx code. See rtl.def for documentation on the defined classes. */
-char rtx_class[] = {
+const char rtx_class[] = {
#define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) CLASS,
#include "rtl.def" /* rtl expressions are defined here */
#undef DEF_RTL_EXPR
@@ -175,7 +175,7 @@ char rtx_class[] = {
/* Names for kinds of NOTEs and REG_NOTEs. */
-char *note_insn_name[] = { 0 , "NOTE_INSN_DELETED",
+const char * const note_insn_name[] = { 0 , "NOTE_INSN_DELETED",
"NOTE_INSN_BLOCK_BEG", "NOTE_INSN_BLOCK_END",
"NOTE_INSN_LOOP_BEG", "NOTE_INSN_LOOP_END",
"NOTE_INSN_FUNCTION_END", "NOTE_INSN_SETJMP",
@@ -187,7 +187,7 @@ char *note_insn_name[] = { 0 , "NOTE_INSN_DELETED",
"NOTE_INSN_RANGE_END", "NOTE_INSN_LIVE",
"NOTE_INSN_BASIC_BLOCK" };
-char *reg_note_name[] = { "", "REG_DEAD", "REG_INC", "REG_EQUIV", "REG_WAS_0",
+const char * const reg_note_name[] = { "", "REG_DEAD", "REG_INC", "REG_EQUIV", "REG_WAS_0",
"REG_EQUAL", "REG_RETVAL", "REG_LIBCALL",
"REG_NONNEG", "REG_NO_CONFLICT", "REG_UNUSED",
"REG_CC_SETTER", "REG_CC_USER", "REG_LABEL",