[Bug java/4914] Internal compiler error in emit_move_insn, at expr.c:2713

aph at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Nov 6 15:26:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4914


aph at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


------- Additional Comments From aph at gcc dot gnu dot org  2003-11-06 15:26 -------
From: Andrew Haley <aph@redhat.com>
To: gcc-patches@gcc.gnu.org
CC: java-patches@gcc.gnu.org
Subject: java/4914: Internal compiler error in emit_move_insn, at expr.c:2713
Date: Thu, 6 Nov 2003 11:37:09 +0000

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

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

Index: expr.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/expr.c,v
retrieving revision 1.177
diff -u -r1.177 expr.c
--- expr.c	22 Oct 2003 18:00:05 -0000	1.177
+++ expr.c	6 Nov 2003 11:30:03 -0000
@@ -503,8 +503,9 @@
   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;
 }



More information about the Gcc-bugs mailing list