diff options
author | Eric Christopher <echristo@gcc.gnu.org> | 2007-05-30 17:07:58 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gcc.gnu.org> | 2007-05-30 17:07:58 +0000 |
commit | 5abc5de9717ff675b52a8c1453ac83ef65ec5eb9 (patch) | |
tree | 3b9aef34a6b628dab5cc6f58b4996f9ad460c29e /gcc/genrecog.c | |
parent | 9dd3cc811b08e532cef582472222f2543e980940 (diff) | |
download | gcc-5abc5de9717ff675b52a8c1453ac83ef65ec5eb9.zip gcc-5abc5de9717ff675b52a8c1453ac83ef65ec5eb9.tar.gz gcc-5abc5de9717ff675b52a8c1453ac83ef65ec5eb9.tar.bz2 |
genrecog.c: Include regs.h in generated file.
2007-05-30 Eric Christopher <echristo@gmail.com>
* genrecog.c: Include regs.h in generated file.
* genemit.c: Ditto. Fix up formatting.
* config/mn10300/constraints.md: New.
* config/mn10300/mn10300.md: Include.
* config/mn10300/mn10300.c(mn10300_secondary_reload_class):
Fix up for removed macro.
* config/mn10300/predicates.md (call_address_operand): Ditto.
* config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
(CONST_OK_FOR_I): Ditto.
(CONST_OK_FOR_J): Ditto.
(CONST_OK_FOR_K): Ditto.
(CONST_OK_FOR_L): Ditto.
(CONST_OK_FOR_M): Ditto.
(CONST_OK_FOR_N): Ditto.
(CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
(OK_FOR_Q): Ditto.
(OK_FOR_R): Ditto.
(OK_FOR_T): Ditto.
(EXTRA_CONSTRAINT): Ditto.
From-SVN: r125192
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r-- | gcc/genrecog.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c index a65137a..0b7280a 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -171,7 +171,7 @@ static int pattern_lineno; /* Count of errors. */ static int error_count; -/* Predicate handling. +/* Predicate handling. We construct from the machine description a table mapping each predicate to a list of the rtl codes it can possibly match. The @@ -259,7 +259,7 @@ compute_predicate_codes (rtx exp, char codes[NUM_RTX_CODE]) break; case IF_THEN_ELSE: - /* a ? b : c accepts the same codes as (a & b) | (!a & c). */ + /* a ? b : c accepts the same codes as (a & b) | (!a & c). */ compute_predicate_codes (XEXP (exp, 0), op0_codes); compute_predicate_codes (XEXP (exp, 1), op1_codes); compute_predicate_codes (XEXP (exp, 2), op2_codes); @@ -295,7 +295,7 @@ compute_predicate_codes (rtx exp, char codes[NUM_RTX_CODE]) { size_t n = next_code - code; int found_it = 0; - + for (i = 0; i < NUM_RTX_CODE; i++) if (!strncmp (code, GET_RTX_NAME (i), n) && GET_RTX_NAME (i)[n] == '\0') @@ -1088,7 +1088,7 @@ add_to_sequence (rtx pattern, struct decision_head *last, const char *position, if (fmt[i] == 'i') { gcc_assert (i < 2); - + if (!i) { test = new_decision_test (DT_elt_zero_int, &place); @@ -2496,6 +2496,7 @@ write_header (void) #include \"resource.h\"\n\ #include \"toplev.h\"\n\ #include \"reload.h\"\n\ +#include \"regs.h\"\n\ #include \"tm-constrs.h\"\n\ \n"); |