mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-01 08:26:16 +02:00
Downgrade some warnings to notes for EXTDEBUG
git-svn-id: trunk@39924 -
This commit is contained in:
parent
aa89182bf5
commit
5ccced201a
@ -210,7 +210,14 @@ implementation
|
||||
if (not codegenerror) then
|
||||
begin
|
||||
if (p.location.loc<>p.expectloc) then
|
||||
Comment(V_Warning,'Location ('+tcgloc2str[p.location.loc]+') not equal to expectloc ('+tcgloc2str[p.expectloc]+'): '+nodetype2str[p.nodetype]);
|
||||
begin
|
||||
if ((p.location.loc=loc_register) and (p.expectloc=loc_cregister))
|
||||
or ((p.location.loc=loc_fpuregister) and (p.expectloc=loc_cfpuregister))
|
||||
or ((p.location.loc=loc_reference) and (p.expectloc=loc_creference)) then
|
||||
Comment(V_Note,'Location ('+tcgloc2str[p.location.loc]+') not equal to expectloc ('+tcgloc2str[p.expectloc]+'): '+nodetype2str[p.nodetype])
|
||||
else
|
||||
Comment(V_Warning,'Location ('+tcgloc2str[p.location.loc]+') not equal to expectloc ('+tcgloc2str[p.expectloc]+'): '+nodetype2str[p.nodetype]);
|
||||
end;
|
||||
if (p.location.loc=LOC_INVALID) then
|
||||
Comment(V_Warning,'Location not set in secondpass: '+nodetype2str[p.nodetype]);
|
||||
end;
|
||||
|
@ -494,7 +494,10 @@ implementation
|
||||
if not(hp^.temptype in temptypes) then
|
||||
begin
|
||||
{$ifdef EXTDEBUG}
|
||||
Comment(V_Warning,'tgobj: (Freetemp) temp at pos '+tostr(pos.val)+ ' has different type ('+TempTypeStr[hp^.temptype]+'), not releasing');
|
||||
if hp^.temptype = tt_persistent then
|
||||
Comment(V_Note,'tgobj: (Freetemp) temp at pos '+tostr(pos.val)+ ' has different type ('+TempTypeStr[hp^.temptype]+'), not releasing')
|
||||
else
|
||||
Comment(V_Warning,'tgobj: (Freetemp) temp at pos '+tostr(pos.val)+ ' has different type ('+TempTypeStr[hp^.temptype]+'), not releasing');
|
||||
list.concat(tai_tempalloc.allocinfo(hp^.pos,hp^.size,'temp has wrong type ('+TempTypeStr[hp^.temptype]+') not releasing'));
|
||||
{$endif}
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user