Parcourir la source

Merged revisions 1319 via svnmerge from
http://[email protected]/svn/fpc/trunk

r1319 (florian)
* on cpus requiring proper alignment, shortstrings are to two byte boundaries aligned

git-svn-id: branches/fixes_2_0@1528 -

peter il y a 20 ans
Parent
commit
9abbd7599e
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      compiler/symdef.pas

+ 5 - 0
compiler/symdef.pas

@@ -1637,7 +1637,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;