You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by va...@apache.org on 2007/01/11 14:39:51 UTC

svn commit: r495215 - /harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp

Author: varlax
Date: Thu Jan 11 05:39:48 2007
New Revision: 495215

URL: http://svn.apache.org/viewvc?view=rev&rev=495215
Log:
Fixed HARMONY-2969 [drlvm] patch to build jitrino in debug mode with gcc 4.1.0
Tested on SLES9@ia32, SLES9@x64

Modified:
    harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp?view=diff&rev=495215&r1=495214&r2=495215
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp Thu Jan 11 05:39:48 2007
@@ -89,7 +89,7 @@
 void Opnd::setMemOpndSubOpnd(MemOpndSubOpndKind so, Opnd * opnd)
 {
     assert(opnd);
-    assert((so != MemOpndSubOpndKind_Displacement)  || (abs((int32)opnd->getImmValue()) <= 0xffffffff));
+    assert((so != MemOpndSubOpndKind_Displacement)  || ((uint64)abs((int64)opnd->getImmValue()) <= 0xffffffff));
     assert((so != MemOpndSubOpndKind_Scale)         || ((uint64)opnd->getImmValue() <= 8));
     assert(memOpndKind!=MemOpndKind_Null);
     memOpndSubOpnds[so]=opnd;