summaryrefslogtreecommitdiffstats
path: root/gcc/java/jcf-write.c
diff options
context:
space:
mode:
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-27 19:09:14 +0000
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-27 19:09:14 +0000
commitc0bd3767635507005f69c2c75bd22a1a1dfd7f32 (patch)
treed882777e6f1388ffd13d5825fbf3fd60f076ef93 /gcc/java/jcf-write.c
parent00a2e859a967ad871963a6f3fd365f10808e7ac3 (diff)
downloadppe42-gcc-c0bd3767635507005f69c2c75bd22a1a1dfd7f32.tar.gz
ppe42-gcc-c0bd3767635507005f69c2c75bd22a1a1dfd7f32.zip
2000-01-27 Andrew Haley <aph@cygnus.com>
* jcf-write.c (emit_goto): RESERVE 3 bytes for insn. (emit_if): Ditto. (emit_jsr): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31647 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf-write.c')
-rw-r--r--gcc/java/jcf-write.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/java/jcf-write.c b/gcc/java/jcf-write.c
index 0577dcd01f1..d63ad3efbca 100644
--- a/gcc/java/jcf-write.c
+++ b/gcc/java/jcf-write.c
@@ -1086,6 +1086,7 @@ emit_if (target, opcode, inv_opcode, state)
int opcode, inv_opcode;
struct jcf_partial *state;
{
+ RESERVE(3);
OP1 (opcode);
/* value is 1 byte from reloc back to start of instruction. */
emit_reloc (RELOCATION_VALUE_1, - inv_opcode, target, state);
@@ -1096,6 +1097,7 @@ emit_goto (target, state)
struct jcf_block *target;
struct jcf_partial *state;
{
+ RESERVE(3);
OP1 (OPCODE_goto);
/* Value is 1 byte from reloc back to start of instruction. */
emit_reloc (RELOCATION_VALUE_1, OPCODE_goto_w, target, state);
@@ -1106,6 +1108,7 @@ emit_jsr (target, state)
struct jcf_block *target;
struct jcf_partial *state;
{
+ RESERVE(3);
OP1 (OPCODE_jsr);
/* Value is 1 byte from reloc back to start of instruction. */
emit_reloc (RELOCATION_VALUE_1, OPCODE_jsr_w, target, state);
OpenPOWER on IntegriCloud