List Info

Thread: command-line-dependent compiler "error"




command-line-dependent compiler "error"
user name
2006-12-13 20:36:47
Can anyone else on Arch/CVS using JIT (and perhaps on
GNU/Linux x86)
reproduce this?  I go into any subdirectory of the
source/build tree and
do:

[libgst]$ ../gst -I ../gst.im -f ~/Desktop/test-parser.st
An instance of CompiledMethod
  header: 65
  Header Flags:
    flags: 0
    primitive index: 0
    number of arguments: 1
    number of temporaries: 0
    number of literals: 2
    needed stack slots: 8
  descriptor: a MethodInfo
  literals: [
    [1] [] in STInST.RBMethodNode>>#arguments:
    [2] #':'
  ]
  byte codes: [
    [1] source code line number 2
        push Temporary[0]
    [3] store into Instance Variable[6]
    [5] source code line number 3
        push a CompiledBlock
    [7] make dirty block
    [9] send 1 args message #':'
   [11] push self
        return stack top
  ]

(Hint: the weirdness is #':', which should be #do:.)  Using
this
test-parser.st:

PackageLoader fileInPackage: 'Parser'.                      
                   
(((Smalltalk at: #STInST) at: #RBMethodNode) >>
#arguments inspect!

It doesn't happen for "./gst -I ./gst.im", or even
"smalltalk-jit/gst -I
smalltalk-jit/gst.im".  The distributed packages seem
to work fine.
This is on a fresh checkout of patch-207 from smalltalksv.gnu.org, by
the way, using ./configure --enable-jit --without-readline
--disable-gtk

-- 
Stephen Compall
http://scompall.no
candysw.com/blog
##smalltalk,#gnu-smalltalk on Freenode IRC
_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )