瀏覽代碼

Fix compiler cycling starting from 3.0.0 powerpc64 release compiler

git-svn-id: trunk@34431 -
pierre 9 年之前
父節點
當前提交
97c2067832
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      rtl/inc/dynarr.inc

+ 9 - 0
rtl/inc/dynarr.inc

@@ -28,6 +28,15 @@ type
    tdynarraytypedata =
 {$ifndef FPC_REQUIRES_PROPER_ALIGNMENT}
    packed
+{$else}
+  {$ifdef powerpc64}
+    { 3.0.0 does not align elType field on a 8-byte boundary,
+      thus use packed also in this case }
+    {$ifdef VER3_0_0}
+      packed
+    {$endif VER"_0_0}
+  {$endif powerpc64}
+
 {$endif FPC_REQUIRES_PROPER_ALIGNMENT}
    record
      elSize : SizeUInt;