mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 01:39:42 +02:00
* fixed error in r14402 for functions/procedures that are not declared as
"assembler" (mantis #15370) git-svn-id: trunk@14449 -
This commit is contained in:
parent
e3293a4e11
commit
d3f9e6290b
@ -233,10 +233,12 @@ Unit Rax86int;
|
|||||||
if (actasmregister=NR_NO) and (current_procinfo.procdef.proccalloption=pocall_register) then
|
if (actasmregister=NR_NO) and (current_procinfo.procdef.proccalloption=pocall_register) then
|
||||||
begin
|
begin
|
||||||
entry := current_procinfo.procdef.parast.Find(s);
|
entry := current_procinfo.procdef.parast.Find(s);
|
||||||
if assigned(entry) and (entry.typ=paravarsym) and
|
if assigned(entry) and
|
||||||
assigned(tparavarsym(entry).paraloc[calleeside].Location) and
|
(po_assembler in current_procinfo.procdef.procoptions) and
|
||||||
(tparavarsym(entry).paraloc[calleeside].Location^.Loc=LOC_REGISTER) then
|
(entry.typ=paravarsym) and
|
||||||
actasmregister:=tparavarsym(entry).paraloc[calleeside].Location^.register;
|
assigned(tparavarsym(entry).paraloc[calleeside].Location) and
|
||||||
|
(tparavarsym(entry).paraloc[calleeside].Location^.Loc=LOC_REGISTER) then
|
||||||
|
actasmregister:=tparavarsym(entry).paraloc[calleeside].Location^.register;
|
||||||
end;
|
end;
|
||||||
if actasmregister<>NR_NO then
|
if actasmregister<>NR_NO then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user