summaryrefslogtreecommitdiffstats
path: root/gcc/bc-emit.c
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1993-09-27 01:37:21 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1993-09-27 01:37:21 +0000
commitf7ce83a9be867c81683d3da041d93dd11741e21f (patch)
tree5cb7752c19b10ad4d664dddf40f390f1071bf60d /gcc/bc-emit.c
parent6a08b3b8815f500a5f5c6e2eaf0797dbddda2e9c (diff)
downloadppe42-gcc-f7ce83a9be867c81683d3da041d93dd11741e21f.tar.gz
ppe42-gcc-f7ce83a9be867c81683d3da041d93dd11741e21f.zip
(bc_gen_rtx): Call gen_rtx.
(bc_print_rtl): #if 0 the contents. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5482 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bc-emit.c')
-rw-r--r--gcc/bc-emit.c26
1 files changed, 26 insertions, 0 deletions
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
}
OpenPOWER on IntegriCloud