Browse Source

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 4 tháng trước cách đây
mục cha
commit
4aaf65e9f8
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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;