소스 검색

Discard ait_symbol_end if tai_symbol_end(hp).sym.is_used is false

Pierre Muller 2 달 전
부모
커밋
08b7d2ffdb
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      compiler/aggas.pas

+ 1 - 0
compiler/aggas.pas

@@ -1503,6 +1503,7 @@ implementation
            ait_symbol_end :
              begin
                if (tf_needs_symbol_size in target_info.flags) and
+                  (tai_symbol_end(hp).sym.is_used) and
                  { On WebAssembly, the .size directive shouldn't be generated for
                    function symbols, otherwise LLVM-MC v16 and above produce the
                    'warning: .size directive ignored for function symbols' message. }