mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 05:49:12 +02:00
* Fix bug #9141 and pass const params <=16 in by value.
git-svn-id: trunk@7979 -
This commit is contained in:
parent
6e0a7bb0eb
commit
44e07cd098
@ -224,7 +224,8 @@ unit cpupara;
|
|||||||
formaldef :
|
formaldef :
|
||||||
result:=true;
|
result:=true;
|
||||||
recorddef :
|
recorddef :
|
||||||
result:=(varspez=vs_const) or ((target_info.system=system_x86_64_win64) and (def.size>8));
|
result:=((varspez=vs_const) and (def.size>16)) or
|
||||||
|
((target_info.system=system_x86_64_win64) and (def.size>8));
|
||||||
arraydef :
|
arraydef :
|
||||||
begin
|
begin
|
||||||
result:=not(
|
result:=not(
|
||||||
@ -240,7 +241,7 @@ unit cpupara;
|
|||||||
stringdef :
|
stringdef :
|
||||||
result:=(tstringdef(def).stringtype in [st_shortstring,st_longstring]);
|
result:=(tstringdef(def).stringtype in [st_shortstring,st_longstring]);
|
||||||
procvardef :
|
procvardef :
|
||||||
result:=(po_methodpointer in tprocvardef(def).procoptions);
|
result:=(po_methodpointer in tprocvardef(def).procoptions) and (target_info.system=system_x86_64_win64);
|
||||||
setdef :
|
setdef :
|
||||||
result:=(tsetdef(def).settype<>smallset);
|
result:=(tsetdef(def).settype<>smallset);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user