[patch] genemit.c: Remove an assignment-only variable.
Kazu Hirata
kazu@cs.umass.edu
Sun Nov 30 13:52:00 GMT 2003
Hi,
Attached is a patch to remove an assignment-only variable,
register_constraints, which was already assignment-only when GCC was
put into CVS.
Tested on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2003-11-30 Kazu Hirata <kazu@cs.umass.edu>
* genemit.c (register_constraints): Remove.
Index: genemit.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/genemit.c,v
retrieving revision 1.84
diff -u -r1.84 genemit.c
--- genemit.c 19 Jul 2003 14:47:06 -0000 1.84
+++ genemit.c 30 Nov 2003 04:52:53 -0000
@@ -32,7 +32,6 @@
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 @@
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 @@
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 @@
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. */
More information about the Gcc-patches
mailing list