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 2 months ago
parent
commit
4aaf65e9f8
1 changed files with 1 additions and 0 deletions
  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;