* 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:
Jonas Maebe 2018-12-16 20:44:35 +00:00
parent e69b4d2d9a
commit ac8411f3cf

View File

@ -270,7 +270,8 @@ unit cpupara;
then indexed beyond its bounds) }
arraydef:
result:=
(calloption in cdecl_pocalls) or
((calloption in cdecl_pocalls) and
not is_dynamic_array(def)) or
is_open_array(def) or
is_array_of_const(def) or
is_array_constructor(def) or