aboutsummaryrefslogtreecommitdiff
path: root/gcc/genemit.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2003-11-30 19:12:12 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2003-11-30 19:12:12 +0000
commit85a45cbb94cb71243ff95e57ebd7d933745af2f6 (patch)
treef4bba95493b824f7875f7fb5a1840c8ecfbc5afa /gcc/genemit.c
parent1644f06da7e1b30215c047d45291caf33607c92e (diff)
downloadgcc-85a45cbb94cb71243ff95e57ebd7d933745af2f6.zip
gcc-85a45cbb94cb71243ff95e57ebd7d933745af2f6.tar.gz
gcc-85a45cbb94cb71243ff95e57ebd7d933745af2f6.tar.bz2
* genemit.c (register_constraints): Remove.
From-SVN: r74070
Diffstat (limited to 'gcc/genemit.c')
-rw-r--r--gcc/genemit.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/gcc/genemit.c b/gcc/genemit.c
index 8a821d6..2b7d414 100644
--- a/gcc/genemit.c
+++ b/gcc/genemit.c
@@ -32,7 +32,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
static int max_opno;
static int max_dup_opno;
static int max_scratch_opno;
-static int register_constraints;
static int insn_code_number;
static int insn_index_number;
@@ -83,10 +82,6 @@ max_operand_1 (rtx x)
code = GET_CODE (x);
- if (code == MATCH_OPERAND && XSTR (x, 2) != 0 && *XSTR (x, 2) != '\0')
- register_constraints = 1;
- if (code == MATCH_SCRATCH && XSTR (x, 1) != 0 && *XSTR (x, 1) != '\0')
- register_constraints = 1;
if (code == MATCH_OPERAND || code == MATCH_OPERATOR
|| code == MATCH_PARALLEL)
max_opno = MAX (max_opno, XINT (x, 0));
@@ -376,9 +371,7 @@ gen_insn (rtx insn, int lineno)
printf ("/* %s:%d */\n", read_rtx_filename, lineno);
- /* Find out how many operands this function has,
- and also whether any of them have register constraints. */
- register_constraints = 0;
+ /* Find out how many operands this function has. */
operands = max_operand_vec (insn, 1);
if (max_dup_opno >= operands)
fatal ("match_dup operand number has no match_operand");
@@ -431,10 +424,7 @@ gen_expand (rtx expand)
if (XVEC (expand, 1) == 0)
fatal ("define_expand for %s lacks a pattern", XSTR (expand, 0));
- /* Find out how many operands this function has,
- and also whether any of them have register constraints. */
- register_constraints = 0;
-
+ /* Find out how many operands this function has. */
operands = max_operand_vec (expand, 1);
/* Output the function name and argument declarations. */