Commit 4b886873 by Andrew Haley Committed by Andrew Haley

expr.c (java_stack_swap): Make sure destination stack slots are of the correct type.

2003-11-06  Andrew Haley  <aph@redhat.com>

        * expr.c (java_stack_swap): Make sure destination stack slots are
        of the correct type.

From-SVN: r73306
parent e88fb323
2003-11-06 Andrew Haley <aph@redhat.com>
* expr.c (java_stack_swap): Make sure destination stack slots are
of the correct type.
2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
* Make-lang.in (dvi): Move targets to $(docobjdir).
......
......@@ -503,8 +503,9 @@ java_stack_swap (void)
decl1 = find_stack_slot (stack_pointer - 1, type1);
decl2 = find_stack_slot (stack_pointer - 2, type2);
temp = copy_to_reg (DECL_RTL (decl1));
emit_move_insn (DECL_RTL (decl1), DECL_RTL (decl2));
emit_move_insn (DECL_RTL (decl2), temp);
emit_move_insn (DECL_RTL (find_stack_slot (stack_pointer - 1, type2)),
DECL_RTL (decl2));
emit_move_insn (DECL_RTL (find_stack_slot (stack_pointer - 2, type1)), temp);
stack_type_map[stack_pointer - 1] = type2;
stack_type_map[stack_pointer - 2] = type1;
}
......
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