diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-05 15:47:31 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-05 15:47:31 +0000 |
commit | 373f5172dd219254b2f0fb6ce3553c25eb98c61e (patch) | |
tree | 4433412ddc23100f25b093ce4c253045e93e103b /gcc/genoutput.c | |
parent | 7c1b10648edb10ed444a35953d00a4c182a24d56 (diff) | |
download | gcc-373f5172dd219254b2f0fb6ce3553c25eb98c61e.tar.gz |
gcc/
* gensupport.c (sequence_num): Replace with...
(insn_sequence_num, split_sequence_num, peephole2_sequence_num):
...these new variables.
(init_rtx_reader_args_cb): Update accordingly.
(get_num_code_insns): Likewise.
(read_md_rtx): Rework to use a while loop and get_c_test.
Use the new counters. Remove redundant DEFINE_SUBST case.
* genoutput.c (gen_split): Delete.
(main): Don't call it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226635 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genoutput.c')
-rw-r--r-- | gcc/genoutput.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/gcc/genoutput.c b/gcc/genoutput.c index cd7f12906b5..ed9540ded4c 100644 --- a/gcc/genoutput.c +++ b/gcc/genoutput.c @@ -973,46 +973,6 @@ gen_expand (md_rtx_info *info) place_operands (d); } -/* Process a define_split just read. Assign its code number, - only for reasons of consistency and to simplify genrecog. */ - -static void -gen_split (md_rtx_info *info) -{ - struct pattern_stats stats; - data *d = new data; - int i; - - d->code_number = info->index; - d->loc = info->loc; - d->name = 0; - - /* Build up the list in the same order as the insns are seen - in the machine description. */ - d->next = 0; - *idata_end = d; - idata_end = &d->next; - - memset (d->operand, 0, sizeof (d->operand)); - - /* Get the number of operands by scanning all the patterns of the - split patterns. But ignore all the rest of the information thus - obtained. */ - rtx split = info->def; - for (i = 0; i < XVECLEN (split, 0); i++) - scan_operands (d, XVECEXP (split, 0, i), 0, 0); - - get_pattern_stats (&stats, XVEC (split, 0)); - d->n_generator_args = 0; - d->n_operands = stats.num_insn_operands; - d->n_dups = 0; - d->n_alternatives = 0; - d->template_code = 0; - d->output_format = INSN_OUTPUT_FORMAT_NONE; - - place_operands (d); -} - static void init_insn_for_nothing (void) { @@ -1055,11 +1015,6 @@ main (int argc, char **argv) gen_expand (&info); break; - case DEFINE_SPLIT: - case DEFINE_PEEPHOLE2: - gen_split (&info); - break; - case DEFINE_CONSTRAINT: case DEFINE_REGISTER_CONSTRAINT: case DEFINE_ADDRESS_CONSTRAINT: |