mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 21:28:03 +02:00
* set pi_do_call for AArch64 mod/div nodes, as they call FPC_DIVBYZERO
git-svn-id: trunk@30032 -
This commit is contained in:
parent
33b1732ca2
commit
ada5060a34
@ -30,6 +30,7 @@ interface
|
||||
|
||||
type
|
||||
taarch64moddivnode = class(tmoddivnode)
|
||||
function pass_1: tnode; override;
|
||||
procedure pass_generate_code;override;
|
||||
end;
|
||||
|
||||
@ -58,6 +59,14 @@ implementation
|
||||
taarch64moddivnode
|
||||
*****************************************************************************}
|
||||
|
||||
function taarch64moddivnode.pass_1: tnode;
|
||||
begin
|
||||
result:=inherited pass_1;
|
||||
if not assigned(result) then
|
||||
include(current_procinfo.flags,pi_do_call);
|
||||
end;
|
||||
|
||||
|
||||
procedure taarch64moddivnode.pass_generate_code;
|
||||
var
|
||||
op : tasmop;
|
||||
|
Loading…
Reference in New Issue
Block a user