<br><br><div class="gmail_quote">On Tue, Jun 28, 2011 at 3:32 AM, Igor Stasenko <span dir="ltr"><<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
/Users/sig/projects/cog/blessed/src/vm/cogit.c:15864: error: lvalue<br>
required as left operand of assignment<br>
/Users/sig/projects/cog/blessed/src/vm/cogit.c:15864: error: lvalue<br>
required as left operand of assignment<br>
<br>
here the problematic line:<br>
<br>
case SSConstant:<br>
inst = (shouldAnnotateObjectReference((self_in_storeToReg->constant))<br>
? annotateobjRef(gMoveCwR((self_in_storeToReg->constant), reg),<br>
(self_in_storeToReg->constant))<br>
>>> : /* begin MoveCq:R: */quickConstant = (self_in_storeToReg->constant),genoperandoperand(MoveCqR, quickConstant, reg));<br>
break;<br>
<br>
<br>
seems like code generator producing bad code.<br></blockquote><div><br></div><div>Yes. It needs a pair of parentheses around quickConstant = (self_in_storeToReg->constant), otherwise its trying to assign an AbstractInstruction * (genoperandoperand) to a sqInt (quickConstant)</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Or maybe i'm not initializing stuff properly (since there are new<br>
options which may need to be passed?)<br>
<font color="#888888"><br>
--<br>
Best regards,<br>
Igor Stasenko AKA sig.<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>best,<div>Eliot</div><br>