Commit 1e2e5efa by Richard Sandiford Committed by Richard Sandiford

genoutput.c (next_index_number): Delete.

gcc/
	* genoutput.c (next_index_number): Delete.
	(data): Remove index_number.
	(gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
	(main): Remove manipulation of next_index_number.

From-SVN: r225876
parent 5839708b
2015-07-16 Richard Sandiford <richard.sandiford@arm.com> 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
* genoutput.c (next_index_number): Delete.
(data): Remove index_number.
(gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
(main): Remove manipulation of next_index_number.
2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
* genattrtab.c (check_attr_value): Remove handling of null attrs. * genattrtab.c (check_attr_value): Remove handling of null attrs.
(make_canonical): Likewise. (make_canonical): Likewise.
......
...@@ -109,11 +109,6 @@ static const char *strip_whitespace (const char *); ...@@ -109,11 +109,6 @@ static const char *strip_whitespace (const char *);
static int next_code_number; static int next_code_number;
/* This counts all definitions in the md file,
for the sake of error messages. */
static int next_index_number;
/* This counts all operands used in the md file. The first is null. */ /* This counts all operands used in the md file. The first is null. */
static int next_operand_number = 1; static int next_operand_number = 1;
...@@ -160,7 +155,6 @@ struct data ...@@ -160,7 +155,6 @@ struct data
const char *name; const char *name;
const char *template_code; const char *template_code;
int code_number; int code_number;
int index_number;
const char *filename; const char *filename;
int lineno; int lineno;
int n_generator_args; /* Number of arguments passed to generator */ int n_generator_args; /* Number of arguments passed to generator */
...@@ -885,7 +879,6 @@ gen_insn (rtx insn, int lineno) ...@@ -885,7 +879,6 @@ gen_insn (rtx insn, int lineno)
int i; int i;
d->code_number = next_code_number; d->code_number = next_code_number;
d->index_number = next_index_number;
d->filename = read_md_filename; d->filename = read_md_filename;
d->lineno = lineno; d->lineno = lineno;
if (XSTR (insn, 0)[0]) if (XSTR (insn, 0)[0])
...@@ -928,7 +921,6 @@ gen_peephole (rtx peep, int lineno) ...@@ -928,7 +921,6 @@ gen_peephole (rtx peep, int lineno)
int i; int i;
d->code_number = next_code_number; d->code_number = next_code_number;
d->index_number = next_index_number;
d->filename = read_md_filename; d->filename = read_md_filename;
d->lineno = lineno; d->lineno = lineno;
d->name = 0; d->name = 0;
...@@ -968,7 +960,6 @@ gen_expand (rtx insn, int lineno) ...@@ -968,7 +960,6 @@ gen_expand (rtx insn, int lineno)
int i; int i;
d->code_number = next_code_number; d->code_number = next_code_number;
d->index_number = next_index_number;
d->filename = read_md_filename; d->filename = read_md_filename;
d->lineno = lineno; d->lineno = lineno;
if (XSTR (insn, 0)[0]) if (XSTR (insn, 0)[0])
...@@ -1014,7 +1005,6 @@ gen_split (rtx split, int lineno) ...@@ -1014,7 +1005,6 @@ gen_split (rtx split, int lineno)
int i; int i;
d->code_number = next_code_number; d->code_number = next_code_number;
d->index_number = next_index_number;
d->filename = read_md_filename; d->filename = read_md_filename;
d->lineno = lineno; d->lineno = lineno;
d->name = 0; d->name = 0;
...@@ -1067,7 +1057,6 @@ main (int argc, char **argv) ...@@ -1067,7 +1057,6 @@ main (int argc, char **argv)
return (FATAL_EXIT_CODE); return (FATAL_EXIT_CODE);
output_prologue (); output_prologue ();
next_index_number = 0;
/* Read the machine description. */ /* Read the machine description. */
...@@ -1108,7 +1097,6 @@ main (int argc, char **argv) ...@@ -1108,7 +1097,6 @@ main (int argc, char **argv)
default: default:
break; break;
} }
next_index_number++;
} }
printf ("\n\n"); printf ("\n\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment