diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-20 23:11:19 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-20 23:11:19 +0000 |
commit | 66e6c35033e1a29945e01f028fbd7b59c1b9476e (patch) | |
tree | 12bd99171720a7b9d5c2e07a292d53b6c85c1516 /gcc/rtl.h | |
parent | d2ca078f8e29e5c5e212e8cf003ec0890d1b7de7 (diff) | |
download | gcc-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.h')
-rw-r--r-- | gcc/rtl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h index a5cb3870ec8..381e66d74d3 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -57,7 +57,7 @@ extern const char * const rtx_name[]; extern const char *rtx_format[]; #define GET_RTX_FORMAT(CODE) (rtx_format[(int) (CODE)]) -extern char rtx_class[]; +extern const char rtx_class[]; #define GET_RTX_CLASS(CODE) (rtx_class[(int) (CODE)]) /* The flags and bitfields of an ADDR_DIFF_VEC. BASE is the base label @@ -378,7 +378,7 @@ enum reg_note { REG_DEAD = 1, REG_INC = 2, REG_EQUIV = 3, REG_WAS_0 = 4, /* Names for REG_NOTE's in EXPR_LIST insn's. */ -extern char *reg_note_name[]; +extern const char * const reg_note_name[]; #define GET_REG_NOTE_NAME(MODE) (reg_note_name[(int) (MODE)]) /* This field is only present on CALL_INSNs. It holds a chain of EXPR_LIST of @@ -479,7 +479,7 @@ extern char *reg_note_name[]; /* Names for NOTE insn's other than line numbers. */ -extern char *note_insn_name[]; +extern const char * const note_insn_name[]; #define GET_NOTE_INSN_NAME(NOTE_CODE) (note_insn_name[-(NOTE_CODE)]) /* The name of a label, in case it corresponds to an explicit label |