diff options
author | Jan Brittenson <bson@gnu.org> | 1993-09-21 14:25:24 -0700 |
---|---|---|
committer | Jan Brittenson <bson@gnu.org> | 1993-09-21 14:25:24 -0700 |
commit | ca695ac93dca6da6f9bcb2916cd3798f016084b2 (patch) | |
tree | 9955b06ba9da7010dd96c146915e52676d09d15f /gcc/emit-rtl.c | |
parent | 86d7f2db057abae09db4208bf0578f6e9a0da17b (diff) | |
download | gcc-ca695ac93dca6da6f9bcb2916cd3798f016084b2.zip gcc-ca695ac93dca6da6f9bcb2916cd3798f016084b2.tar.gz gcc-ca695ac93dca6da6f9bcb2916cd3798f016084b2.tar.bz2 |
bytecode
From-SVN: r5379
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 04b9069..a927fd0 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -42,8 +42,29 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "regs.h" #include "insn-config.h" #include "real.h" +#include "obstack.h" + +#include "bytecode.h" +#include "machmode.h" +#include "bc-opcode.h" +#include "bc-typecd.h" +#include "bc-optab.h" +#include "bc-emit.h" + #include <stdio.h> + +/* Opcode names */ +#ifdef BCDEBUG_PRINT_CODE +char *opcode_name[] = +{ +#include "bc-opname.h" + +"***END***" +}; +#endif + + /* This is reset to LAST_VIRTUAL_REGISTER + 1 at the start of each function. After rtl generation, it is 1 plus the largest register number used. */ @@ -203,6 +224,11 @@ extern int emit_lineno; rtx change_address (); void init_emit (); +extern struct obstack *rtl_obstack; + +extern int stack_depth; +extern int max_stack_depth; + /* rtx gen_rtx (code, mode, [element1, ..., elementn]) ** ** This routine generates an RTX of the size specified by @@ -1216,8 +1242,12 @@ change_address (memref, mode, addr) rtx gen_label_rtx () { - register rtx label = gen_rtx (CODE_LABEL, VOIDmode, 0, 0, 0, - label_num++, NULL_PTR); + register rtx label; + + label = output_bytecode + ? bc_gen_rtx (0, 0, bc_get_bytecode_label ()) + : gen_rtx (CODE_LABEL, VOIDmode, 0, 0, 0, label_num++, NULL_PTR); + LABEL_NUSES (label) = 0; return label; } @@ -2559,6 +2589,13 @@ emit_line_note (file, line) char *file; int line; { + if (output_bytecode) + { + /* FIXME: for now we do nothing, but eventually we will have to deal with + debugging information. */ + return 0; + } + emit_filename = file; emit_lineno = line; |