소스 검색

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;