mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 20:39:28 +02:00
- reverted r1733, which caused all local procedures to become global in case
PIC was used. This was probably a workaround for a code generator bug, which is no longer required git-svn-id: trunk@21921 -
This commit is contained in:
parent
955a90c4db
commit
5e93f6b70f
@ -1884,12 +1884,7 @@ implementation
|
||||
if (not current_module.in_interface) then
|
||||
include(pdflags,pd_implemen);
|
||||
if (not current_module.is_unit) or
|
||||
create_smartlink or
|
||||
{
|
||||
taking addresses of static procedures goes wrong
|
||||
if they aren't global when pic is used (FK)
|
||||
}
|
||||
(cs_create_pic in current_settings.moduleswitches) then
|
||||
create_smartlink then
|
||||
include(pd.procoptions,po_global);
|
||||
pd.forwarddef:=false;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user