mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 22:47:59 +02:00
* be more carefull with unaligned load optimization
git-svn-id: trunk@6356 -
This commit is contained in:
parent
e70c6df440
commit
eb8b2fb138
@ -857,7 +857,10 @@ unit cgcpu;
|
||||
if assigned(ref.symbol) or
|
||||
(ref.index<>NR_NO) or
|
||||
(ref.offset<-4095) or
|
||||
(ref.offset>4094) then
|
||||
(ref.offset>4094) or
|
||||
{ sometimes the compiler reused registers }
|
||||
(reg=ref.index) or
|
||||
(reg=ref.base) then
|
||||
begin
|
||||
tmpreg3:=getintregister(list,OS_INT);
|
||||
a_loadaddr_ref_reg(list,ref,tmpreg3);
|
||||
@ -886,7 +889,10 @@ unit cgcpu;
|
||||
if assigned(ref.symbol) or
|
||||
(ref.index<>NR_NO) or
|
||||
(ref.offset<-4095) or
|
||||
(ref.offset>4092) then
|
||||
(ref.offset>4092) or
|
||||
{ sometimes the compiler reused registers }
|
||||
(reg=ref.index) or
|
||||
(reg=ref.base) then
|
||||
begin
|
||||
tmpreg3:=getintregister(list,OS_INT);
|
||||
a_loadaddr_ref_reg(list,ref,tmpreg3);
|
||||
|
@ -375,7 +375,7 @@ implementation
|
||||
(tabstractrecordsymtable(vs.owner).usefieldalignment=1) then
|
||||
location.reference.alignment:=1;
|
||||
{$endif SUPPORT_UNALIGNED}
|
||||
|
||||
|
||||
end
|
||||
else if (vs.fieldoffset mod 8 = 0) and
|
||||
(resultdef.packedbitsize mod 8 = 0) and
|
||||
|
Loading…
Reference in New Issue
Block a user