mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 22:49:17 +02:00
* Optimize parentfp when optimization level 1 and higher to be debugger friendly.
git-svn-id: trunk@45661 -
This commit is contained in:
parent
120eb6b8a2
commit
11fd466394
@ -143,12 +143,14 @@ implementation
|
|||||||
pd: tprocdef;
|
pd: tprocdef;
|
||||||
begin
|
begin
|
||||||
{ The parameter can be optimized as unused when:
|
{ The parameter can be optimized as unused when:
|
||||||
|
optimization level 1 and higher
|
||||||
this is a direct call to a routine, not a procvar
|
this is a direct call to a routine, not a procvar
|
||||||
and the routine is not an exception filter
|
and the routine is not an exception filter
|
||||||
and the parameter is not used by the routine
|
and the parameter is not used by the routine
|
||||||
and implementation of the routine is already processed.
|
and implementation of the routine is already processed.
|
||||||
}
|
}
|
||||||
result:=assigned(parasym.Owner) and
|
result:=(cs_opt_level1 in current_settings.optimizerswitches) and
|
||||||
|
assigned(parasym.Owner) and
|
||||||
(parasym.Owner.defowner.typ=procdef);
|
(parasym.Owner.defowner.typ=procdef);
|
||||||
if not result then
|
if not result then
|
||||||
exit;
|
exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user