diff mc-code-powerpc.c @ 583:421be86892b3

ia32 reorganization
author kono
date Tue, 17 Jan 2006 23:38:57 +0900
parents dbde3b869a0f
children c991b82e6849
line wrap: on
line diff
--- a/mc-code-powerpc.c	Mon Jan 16 00:52:56 2006 +0900
+++ b/mc-code-powerpc.c	Tue Jan 17 23:38:57 2006 +0900
@@ -1587,6 +1587,7 @@
     default:
 	if (length <0) {
 	    if (length >= -MAX_COPY_LEN) {
+		free_register(dreg); dreg = 0;
 		for(;length<=-4;length+=4,offset-=4)
 		    emit_copy(from,to,-4,offset-4,0,det);
 		for(;length<=-2;length+=2,offset-=2)
@@ -1596,6 +1597,7 @@
 		break;
 	    }
 	} else if (length <=MAX_COPY_LEN) {
+	    free_register(dreg); dreg = 0;
 	    for(;length>=4;length-=4,offset+=4)
 		emit_copy(from,to,4,offset,0,det);
 	    for(;length>=2;length-=2,offset+=2)
@@ -1631,7 +1633,7 @@
 	    // set_ireg(to,1);
 	}
     }
-    free_register(dreg);
+    if (dreg) free_register(dreg);
 }
 
 int