Selaa lähdekoodia

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 kuukautta sitten
vanhempi
commit
4aaf65e9f8
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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;