mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 15:19:25 +02:00
Possible fix for the OpenSolaris x86_64 cycle failure, due to bind change from AB_GLOBAL back to AB_LOCAL after code generation, which lead to invalid code
git-svn-id: trunk@29431 -
This commit is contained in:
parent
1e3d48288c
commit
87b9c1b2ea
@ -406,7 +406,12 @@ implementation
|
||||
internalerror(200603261);
|
||||
end;
|
||||
hp.typ:=_typ;
|
||||
hp.bind:=_bind;
|
||||
{$ifdef x86_64}
|
||||
{ On x86_64 at least changing bind from AB_GLOBAL to AB_LOCAL is wrong
|
||||
if bind is already AB_GLOBAL, GOT might be involved, so do not change. }
|
||||
if (_bind<>AB_LOCAL) or (hp.bind<>AB_GLOBAL) then
|
||||
{$endif x86_64}
|
||||
hp.bind:=_bind;
|
||||
end
|
||||
else
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user