diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-13 16:43:04 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-13 16:43:04 +0000 |
commit | c192dab3e1740d02c9fba4bfc6b90589a26d6ed5 (patch) | |
tree | bb94b947de49dc4151bc99a73621177f77fa655e /gcc/genrecog.c | |
parent | 33f88b1c70435e9803c2dbeffc56522f23484f57 (diff) | |
download | gcc-c192dab3e1740d02c9fba4bfc6b90589a26d6ed5.tar.gz |
* genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
fields with a pointer to the instruction definition.
(get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
(insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
(write_attr_case, write_const_num_delay_slots): Update accordingly.
(write_attr_case, write_const_num_delay_slots): Write the name of
an insn next to its case statement.
* genoutput.c (data): Add a filename field.
(gen_insn, gen_peephole, gen_expand, gen_split): Set it.
(output_insn_data): Print the location of each insn definition.
* genrecog.c (write_action): Print the name of an insn above
the statement that returns its code.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85947 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r-- | gcc/genrecog.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c index c1d559ffe74..097faefe8c2 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -2168,7 +2168,9 @@ write_action (struct decision *p, struct decision_test *test, if (test->u.insn.num_clobbers_to_add != 0) printf ("%s*pnum_clobbers = %d;\n", indent, test->u.insn.num_clobbers_to_add); - printf ("%sreturn %d;\n", indent, test->u.insn.code_number); + printf ("%sreturn %d; /* %s */\n", indent, + test->u.insn.code_number, + insn_name_ptr[test->u.insn.code_number]); break; case SPLIT: |