diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-16 00:28:20 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-16 00:28:20 +0000 |
commit | ff5decbb58fc6dbc921423e4b5e6aee084eebe81 (patch) | |
tree | 3979093e16abc21060c0838e4098170a76535cc1 /gcc/rtl.c | |
parent | f776b3c443371cb0d3ecd4d173bc6a45e7654ad0 (diff) | |
download | ppe42-gcc-ff5decbb58fc6dbc921423e4b5e6aee084eebe81.tar.gz ppe42-gcc-ff5decbb58fc6dbc921423e4b5e6aee084eebe81.zip |
* machmode.def (Pmode): Redefine if GENERATOR_FILE.
* genrecog.c (maybe_both_true_mode): New.
(maybe_both_true_2): Use it.
(write_switch): Don't put Pmode in a switch.
* rtl.c (mode arrays): Don't explicitly size them.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44029 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtl.c')
-rw-r--r-- | gcc/rtl.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/gcc/rtl.c b/gcc/rtl.c index de5e0481843..c5dcb26086e 100644 --- a/gcc/rtl.c +++ b/gcc/rtl.c @@ -117,11 +117,8 @@ const char * const rtx_name[] = { #define DEF_MACHMODE(SYM, NAME, CLASS, BITSIZE, SIZE, UNIT, WIDER) NAME, -const char * const mode_name[(int) MAX_MACHINE_MODE + 1] = { +const char * const mode_name[] = { #include "machmode.def" - /* Add an extra field to avoid a core dump if someone tries to convert - MAX_MACHINE_MODE to a string. */ - "" }; #undef DEF_MACHMODE @@ -130,7 +127,7 @@ const char * const mode_name[(int) MAX_MACHINE_MODE + 1] = { #define DEF_MACHMODE(SYM, NAME, CLASS, BITSIZE, SIZE, UNIT, WIDER) CLASS, -const enum mode_class mode_class[(int) MAX_MACHINE_MODE] = { +const enum mode_class mode_class[] = { #include "machmode.def" }; @@ -141,7 +138,7 @@ const enum mode_class mode_class[(int) MAX_MACHINE_MODE] = { #define DEF_MACHMODE(SYM, NAME, CLASS, BITSIZE, SIZE, UNIT, WIDER) BITSIZE, -const unsigned int mode_bitsize[(int) MAX_MACHINE_MODE] = { +const unsigned int mode_bitsize[] = { #include "machmode.def" }; @@ -152,7 +149,7 @@ const unsigned int mode_bitsize[(int) MAX_MACHINE_MODE] = { #define DEF_MACHMODE(SYM, NAME, CLASS, BITSIZE, SIZE, UNIT, WIDER) SIZE, -const unsigned int mode_size[(int) MAX_MACHINE_MODE] = { +const unsigned int mode_size[] = { #include "machmode.def" }; @@ -163,7 +160,7 @@ const unsigned int mode_size[(int) MAX_MACHINE_MODE] = { #define DEF_MACHMODE(SYM, NAME, CLASS, BITSIZE, SIZE, UNIT, WIDER) UNIT, -const unsigned int mode_unit_size[(int) MAX_MACHINE_MODE] = { +const unsigned int mode_unit_size[] = { #include "machmode.def" /* machine modes are documented here */ }; @@ -176,7 +173,7 @@ const unsigned int mode_unit_size[(int) MAX_MACHINE_MODE] = { #define DEF_MACHMODE(SYM, NAME, CLASS, BITSIZE, SIZE, UNIT, WIDER) \ (unsigned char) WIDER, -const unsigned char mode_wider_mode[(int) MAX_MACHINE_MODE] = { +const unsigned char mode_wider_mode[] = { #include "machmode.def" /* machine modes are documented here */ }; @@ -187,7 +184,7 @@ const unsigned char mode_wider_mode[(int) MAX_MACHINE_MODE] = { /* Indexed by machine mode, gives mask of significant bits in mode. */ -const unsigned HOST_WIDE_INT mode_mask_array[(int) MAX_MACHINE_MODE] = { +const unsigned HOST_WIDE_INT mode_mask_array[] = { #include "machmode.def" }; |