aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorAndrew Haley <aph@cygnus.com>2000-01-27 19:09:14 +0000
committerAndrew Haley <aph@gcc.gnu.org>2000-01-27 19:09:14 +0000
commitf85cedde612919b640d9bc1643645aef994cb4a0 (patch)
treed882777e6f1388ffd13d5825fbf3fd60f076ef93 /gcc/java
parent899905f6d3ba4d3bf938b4f70130d8978884021c (diff)
downloadgcc-f85cedde612919b640d9bc1643645aef994cb4a0.zip
gcc-f85cedde612919b640d9bc1643645aef994cb4a0.tar.gz
gcc-f85cedde612919b640d9bc1643645aef994cb4a0.tar.bz2
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
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog6
-rw-r--r--gcc/java/jcf-write.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 251c4be..c28b99a 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,9 @@
+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>
* parse.h (OBSOLETE_MODIFIER_WARNING): Don't use ANSI string
diff --git a/gcc/java/jcf-write.c b/gcc/java/jcf-write.c
index 0577dcd..d63ad3e 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);