소스 검색

Avoid adding size if tf_needs_symbol_size is not in target_info.flags

Pierre Muller 4 달 전
부모
커밋
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;