diff --git a/compiler/ncgcon.pas b/compiler/ncgcon.pas index db7b36b404..39b6c02016 100644 --- a/compiler/ncgcon.pas +++ b/compiler/ncgcon.pas @@ -178,7 +178,8 @@ implementation internalerror(10120); {$endif not cpufloat128} end; - current_asmdata.asmlists[al_typedconsts].concat(Tai_symbol_end.Create(lastlabel)); + if (tf_needs_symbol_size in target_info.flags) then + current_asmdata.asmlists[al_typedconsts].concat(Tai_symbol_end.Create(lastlabel)); end; end; location.reference.symbol:=lab_real;