浏览代码

Avoid adding size if tf_needs_symbol_size is not in target_info.flags

Pierre Muller 2 月之前
父节点
当前提交
0610d691b6
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/ncgcon.pas

+ 2 - 1
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;