diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-08-21 17:23:10 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-08-21 17:23:10 +0000 |
commit | 523ba7389abc5dd3f73cb10557edba876b3e1d1f (patch) | |
tree | 48205e4dfefd1ab26f456d3fbd7f172bbab3cf5b /gcc/recog.h | |
parent | f5dffc0ba1786e6af96fd31e9c04599b818aeedb (diff) | |
download | gcc-523ba7389abc5dd3f73cb10557edba876b3e1d1f.zip gcc-523ba7389abc5dd3f73cb10557edba876b3e1d1f.tar.gz gcc-523ba7389abc5dd3f73cb10557edba876b3e1d1f.tar.bz2 |
gencodes.c (gencodes): Print the comma for the preceding enum value rather than the current one.
gcc/
* gencodes.c (gencodes): Print the comma for the preceding
enum value rather than the current one. Use aliased enum values
rather than #defines for compiled-out patterns.
(main): Update accordingly. Replace LAST_INSN_CODE with
NUM_INSN_CODES.
* lra.c (insn_code_data): Update accordingly.
(finish_insn_code_data_once, get_static_insn_data): Likewise.
* recog.h (target_recog): Likewise.
(preprocess_insn_constraints): Change parameter to unsigned int.
* recog.c (preprocess_insn_constraints): Likewise.
(recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
* tree-vect-stmts.c (vectorizable_operation): Simplify.
From-SVN: r227076
Diffstat (limited to 'gcc/recog.h')
-rw-r--r-- | gcc/recog.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/recog.h b/gcc/recog.h index ce931eb..327d6c0 100644 --- a/gcc/recog.h +++ b/gcc/recog.h @@ -137,7 +137,7 @@ extern void extract_constrain_insn_cached (rtx_insn *); extern void extract_insn_cached (rtx_insn *); extern void preprocess_constraints (int, int, const char **, operand_alternative *); -extern const operand_alternative *preprocess_insn_constraints (int); +extern const operand_alternative *preprocess_insn_constraints (unsigned int); extern void preprocess_constraints (rtx_insn *); extern rtx_insn *peep2_next_insn (int); extern int peep2_regno_dead_p (int, int); @@ -393,8 +393,8 @@ enum bool_attr { /* Target-dependent globals. */ struct target_recog { bool x_initialized; - alternative_mask x_bool_attr_masks[LAST_INSN_CODE][BA_LAST + 1]; - operand_alternative *x_op_alt[LAST_INSN_CODE]; + alternative_mask x_bool_attr_masks[NUM_INSN_CODES][BA_LAST + 1]; + operand_alternative *x_op_alt[NUM_INSN_CODES]; }; extern struct target_recog default_target_recog; |