summaryrefslogtreecommitdiff
path: root/compiler/ncgutil.pas
diff options
context:
space:
mode:
authorflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2020-11-28 16:02:51 +0000
committerflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2020-11-28 16:02:51 +0000
commitd784744c2620d1fbde26dec0f9f840911fad147a (patch)
treeacf30fd79c0743ba9adc8eec49a576de5eeb92e7 /compiler/ncgutil.pas
parent1620bb568539ca015ce657f5cc709dfab5c25a8e (diff)
downloadfpc-d784744c2620d1fbde26dec0f9f840911fad147a.tar.gz
* take care of po_noreturn in more cases
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@47623 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/ncgutil.pas')
-rw-r--r--compiler/ncgutil.pas4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/ncgutil.pas b/compiler/ncgutil.pas
index a7c129ec82..e5f16bb920 100644
--- a/compiler/ncgutil.pas
+++ b/compiler/ncgutil.pas
@@ -870,6 +870,8 @@ implementation
procedure gen_save_used_regs(list:TAsmList);
begin
+ if po_noreturn in current_procinfo.procdef.procoptions then
+ exit;
{ Pure assembler routines need to save the registers themselves }
if (po_assembler in current_procinfo.procdef.procoptions) then
exit;
@@ -880,6 +882,8 @@ implementation
procedure gen_restore_used_regs(list:TAsmList);
begin
+ if po_noreturn in current_procinfo.procdef.procoptions then
+ exit;
{ Pure assembler routines need to save the registers themselves }
if (po_assembler in current_procinfo.procdef.procoptions) then
exit;