aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-12-18 02:37:06 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-12-18 02:37:06 +0000
commit86460bab0239d2bbcdef1b500dbb9f0d08d40776 (patch)
treeee99b3e3797ecd2a9d3561182267ee36e9ed46bc /gcc/rtl.h
parent29b06e3587660a8db8a6c2825aa1a953a5183aaa (diff)
downloadgcc-86460bab0239d2bbcdef1b500dbb9f0d08d40776.zip
gcc-86460bab0239d2bbcdef1b500dbb9f0d08d40776.tar.gz
gcc-86460bab0239d2bbcdef1b500dbb9f0d08d40776.tar.bz2
machmode.h (mode_name, [...]): Set array size in declaration to NUM_MACHINE_MODES.
* machmode.h (mode_name, mode_class, mode_size, mode_unit_size, mode_bitsize, mode_mask_array, mode_wider_mode): Set array size in declaration to NUM_MACHINE_MODES. (mode_size, mode_unit_size): Set array type to unsigned char. (mode_bitsize): Set array type to unsigned short. * rtl.c (rtx_length): Set array type to unsigned char. (rtx_length, rtx_name, rtx_format, rtx_class): Set array size to NUM_RTX_CODE. (mode_bitsize): Set array type to unsigned short. (mode_size, mode_unit_size): Set array type to unsigned char. (mode_name, mode_class, mode_bitsize, mode_size, mode_unit_size, mode_wider_mode, mode_mask_array): Set array size to NUM_MACHINE_MODES. * rtl.h (rtx_length, rtx_name, rtx_format, rtx_class): Set array size in declaration to NUM_RTX_CODE. From-SVN: r48139
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 0be72c1..ff29333 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -51,16 +51,16 @@ enum rtx_code {
#define NUM_RTX_CODE ((int)LAST_AND_UNUSED_RTX_CODE)
/* The cast here, saves many elsewhere. */
-extern const int rtx_length[];
+extern const unsigned char rtx_length[NUM_RTX_CODE];
#define GET_RTX_LENGTH(CODE) (rtx_length[(int) (CODE)])
-extern const char * const rtx_name[];
+extern const char * const rtx_name[NUM_RTX_CODE];
#define GET_RTX_NAME(CODE) (rtx_name[(int) (CODE)])
-extern const char * const rtx_format[];
+extern const char * const rtx_format[NUM_RTX_CODE];
#define GET_RTX_FORMAT(CODE) (rtx_format[(int) (CODE)])
-extern const char rtx_class[];
+extern const char rtx_class[NUM_RTX_CODE];
#define GET_RTX_CLASS(CODE) (rtx_class[(int) (CODE)])
/* The flags and bitfields of an ADDR_DIFF_VEC. BASE is the base label