diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-23 15:15:12 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-23 15:15:12 +0000 |
commit | 343695df238d8e043fe83c8b0cce11b73f2e2cba (patch) | |
tree | 04e7c2430e813b518ab2f021d422bd49f8d865ec /gcc/genoutput.c | |
parent | af908c02d4c893024a3ccfa73244b96a10caeb2f (diff) | |
download | gcc-343695df238d8e043fe83c8b0cce11b73f2e2cba.tar.gz |
r110124@banpei: zack | 2006-01-22 14:45:55 -0800
* gensupport.c: Define get_insn_name and record_insn_name here.
(read_md_rtx): Call record_insn_name as appropriate.
* genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
* genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
* genpreds.c, genrecog.c: Don't define get_insn_name nor
record_insn_name.
* Makefile.in (BUILD_SUPPORT, BUILD_PRINT): Fold into BUILD_RTL.
(BUILD_VARRAY): Delete.
(genprognormal): Rename genprogmd. Fold in all programs from
genprognoprint; also attrtab.
(build/genattrtab): Just mention genautomata.o and varray.o.
Reorganize a bit, add comments to make the categories clearer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110120 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genoutput.c')
-rw-r--r-- | gcc/genoutput.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/gcc/genoutput.c b/gcc/genoutput.c index e94e20f3d16..4a739042599 100644 --- a/gcc/genoutput.c +++ b/gcc/genoutput.c @@ -192,28 +192,6 @@ static void gen_split (rtx, int); static void check_constraint_len (void); static int constraint_len (const char *, int); -const char * -get_insn_name (int index) -{ - static char buf[100]; - - struct data *i, *last_named = NULL; - for (i = idata; i ; i = i->next) - { - if (i->index_number == index) - return i->name; - if (i->name) - last_named = i; - } - - if (last_named) - sprintf(buf, "%s+%d", last_named->name, index - last_named->index_number); - else - sprintf(buf, "insn %d", index); - - return buf; -} - static void output_prologue (void) { |