瀏覽代碼

Ensure that real constant put into rodata also get a end symbol to generate .size directive (required at least by llvm-mc-16 for wasm32 compiler)

Pierre Muller 2 月之前
父節點
當前提交
4aaf65e9f8
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/ncgcon.pas

+ 1 - 0
compiler/ncgcon.pas

@@ -178,6 +178,7 @@ implementation
                       internalerror(10120);
 {$endif not cpufloat128}
                   end;
+                  current_asmdata.asmlists[al_typedconsts].concat(Tai_symbol_end.Create(lastlabel));
                end;
           end;
         location.reference.symbol:=lab_real;