소스 검색

* on cpus requiring proper alignment, shortstrings are to two byte boundaries aligned

git-svn-id: trunk@1319 -
florian 20 년 전
부모
커밋
1066eb1cb3
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      compiler/symdef.pas

+ 5 - 0
compiler/symdef.pas

@@ -1293,7 +1293,12 @@ implementation
             alignment:=size_2_align(savesize);
           st_longstring,
           st_shortstring:
+{$ifdef cpurequiresproperalignment}
+            { char to string accesses byte 0 and 1 with one word access }
+            alignment:=size_2_align(2);
+{$else cpurequiresproperalignment}
             alignment:=size_2_align(1);
+{$endif cpurequiresproperalignment}
           else
             internalerror(200412301);
         end;