mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 20:49:19 +02:00
- don't generate .size directives for function symbols on WebAssembly, to avoid
warnings from the external assembler
This commit is contained in:
parent
28b080d9bc
commit
38100cd501
@ -1475,7 +1475,12 @@ implementation
|
|||||||
end;
|
end;
|
||||||
ait_symbol_end :
|
ait_symbol_end :
|
||||||
begin
|
begin
|
||||||
if tf_needs_symbol_size in target_info.flags then
|
if (tf_needs_symbol_size in target_info.flags) 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. }
|
||||||
|
(not (target_info.system in systems_wasm) or
|
||||||
|
(tai_symbol_end(hp).sym.typ<>AT_FUNCTION)) then
|
||||||
begin
|
begin
|
||||||
s:=asminfo^.labelprefix+'e'+tostr(symendcount);
|
s:=asminfo^.labelprefix+'e'+tostr(symendcount);
|
||||||
inc(symendcount);
|
inc(symendcount);
|
||||||
|
Loading…
Reference in New Issue
Block a user