Commit f85cedde by Andrew Haley Committed by Andrew Haley

jcf-write.c (emit_goto): RESERVE 3 bytes for insn.

2000-01-27  Andrew Haley  <aph@cygnus.com>

        * jcf-write.c (emit_goto): RESERVE 3 bytes for insn.
        (emit_if): Ditto.
        (emit_jsr): Ditto.

From-SVN: r31647
parent 899905f6
2000-01-27 Andrew Haley <aph@cygnus.com>
* jcf-write.c (emit_goto): RESERVE 3 bytes for insn.
(emit_if): Ditto.
(emit_jsr): Ditto.
2000-01-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2000-01-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* parse.h (OBSOLETE_MODIFIER_WARNING): Don't use ANSI string * parse.h (OBSOLETE_MODIFIER_WARNING): Don't use ANSI string
......
...@@ -1086,6 +1086,7 @@ emit_if (target, opcode, inv_opcode, state) ...@@ -1086,6 +1086,7 @@ emit_if (target, opcode, inv_opcode, state)
int opcode, inv_opcode; int opcode, inv_opcode;
struct jcf_partial *state; struct jcf_partial *state;
{ {
RESERVE(3);
OP1 (opcode); OP1 (opcode);
/* value is 1 byte from reloc back to start of instruction. */ /* value is 1 byte from reloc back to start of instruction. */
emit_reloc (RELOCATION_VALUE_1, - inv_opcode, target, state); emit_reloc (RELOCATION_VALUE_1, - inv_opcode, target, state);
...@@ -1096,6 +1097,7 @@ emit_goto (target, state) ...@@ -1096,6 +1097,7 @@ emit_goto (target, state)
struct jcf_block *target; struct jcf_block *target;
struct jcf_partial *state; struct jcf_partial *state;
{ {
RESERVE(3);
OP1 (OPCODE_goto); OP1 (OPCODE_goto);
/* Value is 1 byte from reloc back to start of instruction. */ /* Value is 1 byte from reloc back to start of instruction. */
emit_reloc (RELOCATION_VALUE_1, OPCODE_goto_w, target, state); emit_reloc (RELOCATION_VALUE_1, OPCODE_goto_w, target, state);
...@@ -1106,6 +1108,7 @@ emit_jsr (target, state) ...@@ -1106,6 +1108,7 @@ emit_jsr (target, state)
struct jcf_block *target; struct jcf_block *target;
struct jcf_partial *state; struct jcf_partial *state;
{ {
RESERVE(3);
OP1 (OPCODE_jsr); OP1 (OPCODE_jsr);
/* Value is 1 byte from reloc back to start of instruction. */ /* Value is 1 byte from reloc back to start of instruction. */
emit_reloc (RELOCATION_VALUE_1, OPCODE_jsr_w, target, state); emit_reloc (RELOCATION_VALUE_1, OPCODE_jsr_w, target, state);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment