Просмотр исходного кода

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

Pierre Muller 2 месяцев назад
Родитель
Сommit
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. }