mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 02:03:15 +02:00
* When optimization is off always load unused parentfp to a local location to be debugger friendly.
git-svn-id: trunk@46514 -
This commit is contained in:
parent
ccc26ad34c
commit
75e5afd45b
@ -865,7 +865,8 @@ implementation
|
||||
end
|
||||
{ Unused parameters need to be kept in the original location
|
||||
to prevent allocation of registers/resources for them. }
|
||||
else if not tparavarsym(vs).is_used then
|
||||
else if not tparavarsym(vs).is_used and
|
||||
(cs_opt_unused_para in current_settings.optimizerswitches) then
|
||||
begin
|
||||
tparavarsym(vs).paraloc[calleeside].get_location(vs.initialloc);
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user