mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
fixes yet another GAS parsing bug
This commit is contained in:
@@ -930,8 +930,8 @@ proc genAsmOrEmitStmt(p: BProc, t: PNode, isAsmStmt=false): PRope =
|
||||
if isAsmStmt and hasGnuAsm in CC[cCompiler].props:
|
||||
for x in splitLines(res):
|
||||
var j = 0
|
||||
while x[j] in {' ', '\t', ':'}: inc(j)
|
||||
if x[j] == '"':
|
||||
while x[j] in {' ', '\t'}: inc(j)
|
||||
if x[j] == ':':
|
||||
# some clobber register list:
|
||||
app(result, x); app(result, tnl)
|
||||
elif x[j] != '\0':
|
||||
|
||||
Reference in New Issue
Block a user