[antlr-interest] Bug in 64bit C backend

Jason Nielsen jdn at math.carleton.ca
Thu Jul 31 13:48:50 PDT 2008


On Wed, 30 Jul 2008, Jim Idle wrote:

> On Wed, 2008-07-30 at 23:26 -0400, Jason Nielsen wrote:
>
>>> IN fact my development version did have a bug because I was in the
>>> middle of fixing something else. I just completed that fix and now i
>>> get:
>>>
>>> ./a.out
>>> Nodes: (VAR_DEF char c) (VAR_DEF int x) (FUNC_DECL (FUNC_HDR void bar
>>> (ARG_DEF int x))) (FUNC_DEF (FUNC_HDR int foo (ARG_DEF int y) (ARG_DEF
>>> char d)) (BLOCK (VAR_DEF int i) (for (= i 0) (< i 3) (= i (+ i 1))
>>> (BLOCK (= x 3) (= y 5)))))
<snip>
>>> Nodes: (VAR_DEF char c) (VAR_DEF int x) (FUNC_DECL (FUNC_HDR void bar
>>> (ARG_DEF int x))) (FUNC_DEF (FUNC_HDR int foo (ARG_DEF int y) (ARG_DEF
>>> char d)) (BLOCK (VAR_DEF int i) (for (= i 0) (< i 3) (= i (+ i 1))
>>> (BLOCK (= x 3) (= y 5)))))
>>>
>>>
>>> Once I fixed your translate() function and using the b3 runtime tar.
>>>

Sorry for the delay in response... it has been a busy day.  I downloaded 
the most recent beta3 from the repo and rebuilt.  Now I'm getting the 
following,

-Imaginary-(0)  : error 10 : Unexpected node, at offset 0, near <missing 
<invalid>> : Missing <invalid>
-Imaginary-(1)  : error 10 : Unexpected node, at offset 54, near <missing 
<invalid>> : Missing <invalid>
Nodes: (VAR_DEF char c) (VAR_DEF int x) (FUNC_DECL FUNC_HDR) (FUNC_DEF 
FUNC_HDR BLOCK)
-Imaginary-(0)  : error 10 : Unexpected node, at offset 0, near <missing 
<invalid>> : Missing <invalid>
-Imaginary-(1)  : error 10 : Unexpected node, at offset 54, near <missing 
<invalid>> : Missing <invalid>
Nodes: (VAR_DEF char c) (VAR_DEF int x) (FUNC_DECL FUNC_HDR) (FUNC_DEF 
FUNC_HDR BLOCK)
.
.
.

Thanks,
Jason
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tar.gz
Type: application/octet-stream
Size: 2291 bytes
Desc: 
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20080731/6c7626c4/attachment.obj 


More information about the antlr-interest mailing list