From c07fa63047e7f7c40acc65fc6f8d03af22bb1223 Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Mon, 14 Jun 2010 23:35:53 +0430 Subject: [PATCH] gen: mark copied register as the owner in o_tmpcopy() --- gen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gen.c b/gen.c index f485022..2fd92b8 100644 --- a/gen.c +++ b/gen.c @@ -445,6 +445,7 @@ void o_tmpcopy(void) } else if (t1->flags & LOC_REG) { t2->addr = reg_get(~t1->addr); regop1(MOV_R2X, t1->addr, t2->addr, BT_TMPBT(TMP_BT(t1))); + regs[t2->addr] = t2; } t2->flags = t1->flags; } -- 2.11.4.GIT