mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 00:46:02 +02:00
* accesses to the ISA pointer are guaranteed to be aligned -> ensure the
code generator knows this git-svn-id: trunk@29944 -
This commit is contained in:
parent
2340da410c
commit
2c6e16e49e
@ -153,7 +153,7 @@ implementation
|
|||||||
globtype,systems,constexp,
|
globtype,systems,constexp,
|
||||||
cutils,verbose,globals,
|
cutils,verbose,globals,
|
||||||
symconst,symbase,defutil,defcmp,
|
symconst,symbase,defutil,defcmp,
|
||||||
nbas,nutils,
|
nbas,ninl,nutils,
|
||||||
wpobase,
|
wpobase,
|
||||||
{$ifdef i8086}
|
{$ifdef i8086}
|
||||||
cpuinfo,
|
cpuinfo,
|
||||||
@ -258,6 +258,10 @@ implementation
|
|||||||
result:=ctypeconvnode.create_internal(left,voidpointertype);
|
result:=ctypeconvnode.create_internal(left,voidpointertype);
|
||||||
result:=cderefnode.create(result);
|
result:=cderefnode.create(result);
|
||||||
inserttypeconv_internal(result,resultdef);
|
inserttypeconv_internal(result,resultdef);
|
||||||
|
{ the ISA pointer is guaranteed to be aligned, while
|
||||||
|
dereferencing a void pointer is normally not aligned at
|
||||||
|
all }
|
||||||
|
result:=geninlinenode(in_aligned_x,false,result);
|
||||||
{ reused }
|
{ reused }
|
||||||
left:=nil;
|
left:=nil;
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user