mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 05:43:51 +02:00
* fixed wrong alignment on 64 bit cpus for rtti data for ordinals and enums if the cpu requires proper alignment
git-svn-id: trunk@3834 -
This commit is contained in:
parent
22982a127d
commit
f38dcb7145
@ -1557,7 +1557,7 @@ implementation
|
|||||||
current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_8bit(otULong));
|
current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_8bit(otULong));
|
||||||
end;
|
end;
|
||||||
{$ifdef cpurequiresproperalignment}
|
{$ifdef cpurequiresproperalignment}
|
||||||
current_asmdata.asmlists[al_rtti].concat(Tai_align.Create(4));
|
current_asmdata.asmlists[al_rtti].concat(Tai_align.Create(sizeof(TConstPtrUInt)));
|
||||||
{$endif cpurequiresproperalignment}
|
{$endif cpurequiresproperalignment}
|
||||||
current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_32bit(min));
|
current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_32bit(min));
|
||||||
current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_32bit(max));
|
current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_32bit(max));
|
||||||
@ -1702,7 +1702,7 @@ implementation
|
|||||||
{$endif cpurequiresproperalignment}
|
{$endif cpurequiresproperalignment}
|
||||||
current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_8bit(byte(trans[typ])));
|
current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_8bit(byte(trans[typ])));
|
||||||
{$ifdef cpurequiresproperalignment}
|
{$ifdef cpurequiresproperalignment}
|
||||||
current_asmdata.asmlists[al_rtti].concat(Tai_align.Create(4));
|
current_asmdata.asmlists[al_rtti].concat(Tai_align.Create(sizeof(TConstPtrUInt)));
|
||||||
{$endif cpurequiresproperalignment}
|
{$endif cpurequiresproperalignment}
|
||||||
current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_32bit(longint(low)));
|
current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_32bit(longint(low)));
|
||||||
current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_32bit(longint(high)));
|
current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_32bit(longint(high)));
|
||||||
|
Loading…
Reference in New Issue
Block a user