mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-11 15:09:27 +01:00
* on cpus requiring proper alignment, shortstrings are to two byte boundaries aligned
git-svn-id: trunk@1319 -
This commit is contained in:
parent
8471e10137
commit
1066eb1cb3
@ -1293,7 +1293,12 @@ implementation
|
|||||||
alignment:=size_2_align(savesize);
|
alignment:=size_2_align(savesize);
|
||||||
st_longstring,
|
st_longstring,
|
||||||
st_shortstring:
|
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);
|
alignment:=size_2_align(1);
|
||||||
|
{$endif cpurequiresproperalignment}
|
||||||
else
|
else
|
||||||
internalerror(200412301);
|
internalerror(200412301);
|
||||||
end;
|
end;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user