tests tcnstseq and tcnstseq3 work again

This commit is contained in:
Araq 2012-03-28 23:03:55 +02:00
commit 97743faa83
3 changed files with 6 additions and 3 deletions

View file

@ -725,7 +725,10 @@ proc genStmts(p: BProc, t: PNode) =
genLineDir(p, t) genLineDir(p, t)
initLocExpr(p, t, a) initLocExpr(p, t, a)
of nkAsgn: genAsgn(p, t, fastAsgn=false) of nkAsgn: genAsgn(p, t, fastAsgn=false)
of nkFastAsgn: genAsgn(p, t, fastAsgn=true) of nkFastAsgn:
# transf is overly aggressive with 'nkFastAsgn', so we work around here.
# See tests/run/tcnstseq3 for an example that would fail otherwise.
genAsgn(p, t, fastAsgn=p.prc != nil)
of nkDiscardStmt: of nkDiscardStmt:
genLineDir(p, t) genLineDir(p, t)
initLocExpr(p, t.sons[0], a) initLocExpr(p, t.sons[0], a)

View file

@ -36,7 +36,7 @@ type
cfsDynLibInit, # section for init of dynamic library binding cfsDynLibInit, # section for init of dynamic library binding
cfsDynLibDeinit # section for deinitialization of dynamic cfsDynLibDeinit # section for deinitialization of dynamic
# libraries # libraries
TCTypeKind* = enum # describes the type kind of a C type TCTypeKind* = enum # describes the type kind of a C type
ctVoid, ctChar, ctBool, ctUInt, ctUInt8, ctUInt16, ctUInt32, ctUInt64, ctVoid, ctChar, ctBool, ctUInt, ctUInt8, ctUInt16, ctUInt32, ctUInt64,
ctInt, ctInt8, ctInt16, ctInt32, ctInt64, ctFloat, ctFloat32, ctFloat64, ctInt, ctInt8, ctInt16, ctInt32, ctInt64, ctFloat, ctFloat32, ctFloat64,
ctFloat128, ctArray, ctStruct, ctPtr, ctNimStr, ctNimSeq, ctProc, ctCString ctFloat128, ctArray, ctStruct, ctPtr, ctNimStr, ctNimSeq, ctProc, ctCString

View file

@ -42,7 +42,7 @@ priority).
Nimrod is efficient Nimrod is efficient
=================== ===================
* Native code generation (currently via compilation to C), not dependant on a * Native code generation (currently via compilation to C), not dependent on a
virtual machine: **Nimrod produces small executables without dependencies virtual machine: **Nimrod produces small executables without dependencies
for easy redistribution.** for easy redistribution.**
* A fast **non-tracing** garbage collector that should be well suited for soft * A fast **non-tracing** garbage collector that should be well suited for soft