mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-08 06:19:31 +01:00
* pass dynamic array parameters of cdecl routines by value on AArch64
(like on onther platforms)
o it was passed by reference as a side effect of the fact arrays in C are
pointers, but a dynamic array already is a pointer
git-svn-id: trunk@40573 -
This commit is contained in:
parent
e69b4d2d9a
commit
ac8411f3cf
@ -270,7 +270,8 @@ unit cpupara;
|
|||||||
then indexed beyond its bounds) }
|
then indexed beyond its bounds) }
|
||||||
arraydef:
|
arraydef:
|
||||||
result:=
|
result:=
|
||||||
(calloption in cdecl_pocalls) or
|
((calloption in cdecl_pocalls) and
|
||||||
|
not is_dynamic_array(def)) or
|
||||||
is_open_array(def) or
|
is_open_array(def) or
|
||||||
is_array_of_const(def) or
|
is_array_of_const(def) or
|
||||||
is_array_constructor(def) or
|
is_array_constructor(def) or
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user