bugfix: the code gen can now handle alias TLock = TSysLock; this fixes threading bugs

This commit is contained in:
Araq 2011-12-23 00:17:59 +01:00
commit 69cc24cdf6
5 changed files with 20 additions and 5 deletions

View file

@ -147,9 +147,6 @@ proc processMagic(c: PContext, n: PNode, s: PSym) =
s.magic = m
break
if s.magic == mNone: Message(n.info, warnUnknownMagic, v)
# magics don't need an implementation, so we
# treat them as imported, instead of modifing a lot of working code:
incl(s.flags, sfImportc)
proc wordToCallConv(sw: TSpecialWord): TCallingConvention =
# this assumes that the order of special words and calling conventions is