diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-18 02:37:06 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-18 02:37:06 +0000 |
commit | 1af5f1601b539cb340068166d22760ea9525ec93 (patch) | |
tree | ee99b3e3797ecd2a9d3561182267ee36e9ed46bc /gcc/machmode.h | |
parent | 5e6c42b18705f8a0d6a6786731c5bb345b193baa (diff) | |
download | gcc-1af5f1601b539cb340068166d22760ea9525ec93.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48139 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/machmode.h')
-rw-r--r-- | gcc/machmode.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h index f0363bdeb66..9b2ad8f2d1e 100644 --- a/gcc/machmode.h +++ b/gcc/machmode.h @@ -38,7 +38,7 @@ MAX_MACHINE_MODE }; /* Get the name of mode MODE as a string. */ -extern const char * const mode_name[]; +extern const char * const mode_name[NUM_MACHINE_MODES]; #define GET_MODE_NAME(MODE) (mode_name[(int) (MODE)]) enum mode_class { MODE_RANDOM, MODE_INT, MODE_FLOAT, MODE_PARTIAL_INT, MODE_CC, @@ -49,7 +49,7 @@ enum mode_class { MODE_RANDOM, MODE_INT, MODE_FLOAT, MODE_PARTIAL_INT, MODE_CC, /* Get the general kind of object that mode MODE represents (integer, floating, complex, etc.) */ -extern const enum mode_class mode_class[]; +extern const enum mode_class mode_class[NUM_MACHINE_MODES]; #define GET_MODE_CLASS(MODE) (mode_class[(int) (MODE)]) /* Nonzero if MODE is an integral mode. */ @@ -77,12 +77,12 @@ extern const enum mode_class mode_class[]; /* Get the size in bytes of an object of mode MODE. */ -extern const unsigned int mode_size[]; +extern const unsigned char mode_size[NUM_MACHINE_MODES]; #define GET_MODE_SIZE(MODE) (mode_size[(int) (MODE)]) /* Get the size in bytes of the basic parts of an object of mode MODE. */ -extern const unsigned int mode_unit_size[]; +extern const unsigned char mode_unit_size[NUM_MACHINE_MODES]; #define GET_MODE_UNIT_SIZE(MODE) (mode_unit_size[(int) (MODE)]) /* Get the number of units in the object. */ @@ -93,7 +93,7 @@ extern const unsigned int mode_unit_size[]; /* Get the size in bits of an object of mode MODE. */ -extern const unsigned int mode_bitsize[]; +extern const unsigned short mode_bitsize[NUM_MACHINE_MODES]; #define GET_MODE_BITSIZE(MODE) (mode_bitsize[(int) (MODE)]) #endif /* not HAVE_MACHINE_MODES */ @@ -103,7 +103,7 @@ extern const unsigned int mode_bitsize[]; /* Get a bitmask containing 1 for all bits in a word that fit within mode MODE. */ -extern const unsigned HOST_WIDE_INT mode_mask_array[]; +extern const unsigned HOST_WIDE_INT mode_mask_array[NUM_MACHINE_MODES]; #define GET_MODE_MASK(MODE) mode_mask_array[(int) (MODE)] @@ -114,7 +114,7 @@ extern const unsigned HOST_WIDE_INT mode_mask_array[]; /* Get the next wider natural mode (eg, QI -> HI -> SI -> DI -> TI). */ -extern const unsigned char mode_wider_mode[]; +extern const unsigned char mode_wider_mode[NUM_MACHINE_MODES]; #define GET_MODE_WIDER_MODE(MODE) ((enum machine_mode)mode_wider_mode[(int) (MODE)]) /* Return the mode for data of a given size SIZE and mode class CLASS. |