* Added assembler comments about unused parameters.

git-svn-id: trunk@46522 -
This commit is contained in:
yury 2020-08-20 20:08:10 +00:00
parent 0a34a090e0
commit de3a479be3

View File

@ -128,13 +128,14 @@ implementation
uses
systems,
verbose,globals,
verbose,globals,cutils,
symconst,symtable,symtype,symsym,defutil,paramgr,
pass_2,
nld,ncnv,
ncgutil,blockutl,
cgobj,tgobj,hlcgobj,
procinfo,
aasmtai,
wpobase;
@ -306,7 +307,14 @@ implementation
exit;
{ If we can't skip loading of the parameter, load an undefined dummy value. }
if not can_skip_para_push(parasym) then
hlcg.a_load_undefined_cgpara(current_asmdata.CurrAsmList,left.resultdef,tempcgpara);
begin
if cs_asm_source in current_settings.globalswitches then
current_asmdata.CurrAsmList.concat(tai_comment.Create(strpnew('Parameter '+parasym.realname+' is unused, loading undefined value')));
hlcg.a_load_undefined_cgpara(current_asmdata.CurrAsmList,left.resultdef,tempcgpara);
end
else
if cs_asm_source in current_settings.globalswitches then
current_asmdata.CurrAsmList.concat(tai_comment.Create(strpnew('Parameter '+parasym.realname+' is unused')));
end;