summaryrefslogtreecommitdiff
path: root/compiler/symtype.pas
diff options
context:
space:
mode:
authorflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2018-02-11 17:50:37 +0000
committerflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2018-02-11 17:50:37 +0000
commit1b60238bda4b8b3749ac84e5803e7af1070ef460 (patch)
tree8a498f05541205b3237500aece4e066cd14f3c47 /compiler/symtype.pas
parent23b61b72c27ee30e81d047399a790fe5e41fbf9b (diff)
downloadfpc-1b60238bda4b8b3749ac84e5803e7af1070ef460.tar.gz
+ implementation of the vectorcall calling convention by J. Gareth Moreton
+ tests git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@38206 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/symtype.pas')
-rw-r--r--compiler/symtype.pas9
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/symtype.pas b/compiler/symtype.pas
index 962849956c..4491960e87 100644
--- a/compiler/symtype.pas
+++ b/compiler/symtype.pas
@@ -82,6 +82,7 @@ interface
function alignment:shortint;virtual;abstract;
{ alignment when this type appears in a record/class/... }
function structalignment:shortint;virtual;
+ function aggregatealignment:shortint;virtual;
function getvardef:longint;virtual;abstract;
function getparentdef:tdef;virtual;
function getsymtable(t:tgetsymtable):TSymtable;virtual;
@@ -379,6 +380,14 @@ implementation
result:=alignment;
end;
+ function tdef.aggregatealignment: shortint;
+ begin
+ if Assigned(Owner) and Assigned(Owner.defowner) and (Owner.defowner is TDef) and (Owner.defowner <> Self) then
+ Result := max(structalignment, TDef(Owner.defowner).aggregatealignment)
+ else
+ Result := structalignment;
+ end;
+
procedure tdef.ChangeOwner(st:TSymtable);
begin