From 04b2d6f5b25e1613c159ac5cce358bd990e2c4b7 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Mon, 27 Sep 1993 01:37:21 +0000 Subject: [PATCH] (bc_gen_rtx): Call gen_rtx. (bc_print_rtl): #if 0 the contents. From-SVN: r5482 --- gcc/bc-emit.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gcc/bc-emit.c b/gcc/bc-emit.c index 77505c4ce6e..b63b8403521 100644 --- a/gcc/bc-emit.c +++ b/gcc/bc-emit.c @@ -826,13 +826,39 @@ bc_write_file (file) BC_WRITE_FILE (file); } + +/* Allocate a new bytecode rtx. + If you supply a null BC_LABEL, we generate one. */ + +rtx +bc_gen_rtx (label, offset, bc_label) + char *label; + int offset; + struct bc_label *bc_label; +{ + rtx r; + + if (bc_label == 0) + bc_label = (struct bc_label *) xmalloc (sizeof (struct bc_label)); + + r = gen_rtx (CODE_LABEL, VOIDmode, label, bc_label); + bc_label->offset = offset; + + return r; +} + + /* Print bytecode rtx */ void bc_print_rtl (fp, r) FILE *fp; rtx r; { +#if 0 /* This needs to get fixed to really work again. */ + /* BC_WRITE_RTL has a definition + that doesn't even make sense for this use. */ BC_WRITE_RTL (r, fp); +#endif } -- 2.30.2