Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/compiler/ir-gas64.bas
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ private sub check_optim(byref code as string)
static as string prevpart1,prevpart2,prevmov
static as long prevwpos,flag
dim as long poschar1,poschar2,writepos

if len(code)=0 then
prevpart1="":prevpart2="":prevmov="":flag=KUSE_MOV ''reinit statics
exit sub
Expand Down Expand Up @@ -539,7 +538,7 @@ private sub check_optim(byref code as string)
code="#O1 "+code
else
if prevpart2="" then ''todo remove me after fixed
asm_error("prevpart empty ????????")
asm_error("prev/part empty "+"part1="+part1+" part2="+part2+" prevpart1="+prevpart1+" prevpart2="+prevpart2)
asm_info("code="+code)
asm_info("part1="+part1+" part2="+part2+" prevpart1="+prevpart1+" prevpart2="+prevpart2)
exit sub
Expand Down Expand Up @@ -6189,7 +6188,11 @@ private sub _emitasmline( byval asmtokenhead as ASTASMTOK ptr )

select case( n->type )
case AST_ASMTOK_TEXT
asmline += *n->text
if *n->text="," then ''add a space to avoid issue during optimization
asmline += ", "
else
asmline += *n->text
end if
asm_info("asm text="+*n->text)
case AST_ASMTOK_SYMB

Expand Down