fixes #8076
This commit is contained in:
parent
2dab490ec1
commit
9adfaa7f07
1 changed files with 11 additions and 10 deletions
|
|
@ -978,12 +978,13 @@ proc genAsmOrEmitStmt(p: BProc, t: PNode, isAsmStmt=false): Rope =
|
||||||
if isAsmStmt and hasGnuAsm in CC[p.config.cCompiler].props:
|
if isAsmStmt and hasGnuAsm in CC[p.config.cCompiler].props:
|
||||||
for x in splitLines(res):
|
for x in splitLines(res):
|
||||||
var j = 0
|
var j = 0
|
||||||
while x[j] in {' ', '\t'}: inc(j)
|
while j < x.len and x[j] in {' ', '\t'}: inc(j)
|
||||||
|
if j < x.len:
|
||||||
if x[j] in {'"', ':'}:
|
if x[j] in {'"', ':'}:
|
||||||
# don't modify the line if already in quotes or
|
# don't modify the line if already in quotes or
|
||||||
# some clobber register list:
|
# some clobber register list:
|
||||||
add(result, x); add(result, "\L")
|
add(result, x); add(result, "\L")
|
||||||
elif x[j] != '\0':
|
else:
|
||||||
# ignore empty lines
|
# ignore empty lines
|
||||||
add(result, "\"")
|
add(result, "\"")
|
||||||
add(result, x)
|
add(result, x)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue