aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i860/i860.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-09-13 21:19:34 -0700
committerRichard Henderson <rth@gcc.gnu.org>1999-09-13 21:19:34 -0700
commit4bbf910eefafa77900eb9234feac7dce5451e18b (patch)
treeddfa019fe74f8976a92fcdd7a45d5f6e82b77a46 /gcc/config/i860/i860.c
parentc452dcde0ad257958078a4f0561f5bbd9d8763fa (diff)
downloadgcc-4bbf910eefafa77900eb9234feac7dce5451e18b.zip
gcc-4bbf910eefafa77900eb9234feac7dce5451e18b.tar.gz
gcc-4bbf910eefafa77900eb9234feac7dce5451e18b.tar.bz2
recog.h (INSN_OUTPUT_FORMAT_*): New.
* recog.h (INSN_OUTPUT_FORMAT_*): New. (struct insn_data): Merge `template' and `outfun' into `output'. Add `output_format'. * genoutput.c (INSN_OUTPUT_FORMAT_*): New. (struct data): Remove `outfun'; add `output_format'. (name_for_index): Remove declaration. (output_insn_data): Handle output formats. (process_template): Emit the bare array for @. (gen_expand, gen_split): Set output_format to NONE. * output.h (get_insn_template): Declare. * final.c (get_insn_template): New. (final_scan_insn): Use it. * toplev.c (compile_file): Likewise. * c4x/c4x.c (c4x_process_after_reload): Likewise. * i860/i860.c (output_delayed_branch): Likewise. (output_delay_insn): Likewise. From-SVN: r29389
Diffstat (limited to 'gcc/config/i860/i860.c')
-rw-r--r--gcc/config/i860/i860.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/config/i860/i860.c b/gcc/config/i860/i860.c
index a6e9458..bdbccfb 100644
--- a/gcc/config/i860/i860.c
+++ b/gcc/config/i860/i860.c
@@ -1456,10 +1456,7 @@ output_delayed_branch (template, operands, insn)
if (! constrain_operands (1))
fatal_insn_not_found (delay_insn);
- template = insn_data[insn_code_number].template;
- if (template == 0)
- template = ((*insn_data[insn_code_number].outfun)
- (recog_data.operand, delay_insn));
+ template = get_insn_template (insn_code_number, delay_insn);
output_asm_insn (template, recog_data.operand);
}
CC_STATUS_INIT;
@@ -1513,10 +1510,7 @@ output_delay_insn (delay_insn)
/* Now get the template for what this insn would
have been, without the branch. */
- template = insn_data[insn_code_number].template;
- if (template == 0)
- template = ((*insn_data[insn_code_number].outfun)
- (recog_data.operand, delay_insn));
+ template = get_insn_template (insn_code_number, delay_insn);
output_asm_insn (template, recog_data.operand);
return "";
}