瀏覽代碼

m68k: do not generate argument popping for a noreturn call

Karoly Balogh 1 年之前
父節點
當前提交
9eda172a48
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/m68k/n68kcal.pas

+ 1 - 1
compiler/m68k/n68kcal.pas

@@ -53,7 +53,7 @@ implementation
 
     procedure tm68kcallnode.pop_parasize(pop_size: longint);
       begin
-        if pop_size<>0 then
+        if (pop_size<>0) and not (po_noreturn in procdefinition.procoptions) then
           current_asmdata.CurrAsmList.concat(taicpu.op_const_reg(A_ADD,S_L,pop_size,NR_SP));
       end;