aboutsummaryrefslogtreecommitdiff
path: root/gcc/genoutput.c
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2006-01-23 15:15:12 +0000
committerZack Weinberg <zack@gcc.gnu.org>2006-01-23 15:15:12 +0000
commit0458fe77b852f0dc55fd301376ff2a60c52b2ec4 (patch)
tree04e7c2430e813b518ab2f021d422bd49f8d865ec /gcc/genoutput.c
parent1c7352cde8a759e414b61d3aeaf40eda67f8dd75 (diff)
downloadgcc-0458fe77b852f0dc55fd301376ff2a60c52b2ec4.zip
gcc-0458fe77b852f0dc55fd301376ff2a60c52b2ec4.tar.gz
gcc-0458fe77b852f0dc55fd301376ff2a60c52b2ec4.tar.bz2
r110124@banpei: zack | 2006-01-22 14:45:55 -0800
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. From-SVN: r110120
Diffstat (limited to 'gcc/genoutput.c')
-rw-r--r--gcc/genoutput.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/gcc/genoutput.c b/gcc/genoutput.c
index e94e20f..4a739042 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)
{