From 96a6acbda286a0f0a6a1120d10f4d32cc25ce4f4 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 27 Sep 2004 15:15:20 +0000 Subject: [PATCH] * dealloc function result registers, register allocation is now back at pre-paraloc level --- compiler/ncgcal.pas | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/compiler/ncgcal.pas b/compiler/ncgcal.pas index 3cbc6aaa8c..a0a8cb555e 100644 --- a/compiler/ncgcal.pas +++ b/compiler/ncgcal.pas @@ -505,14 +505,16 @@ implementation { ansi/widestrings must be registered, so we can dispose them } if resulttype.def.needs_inittable then begin + if resultparaloc^.loc<>LOC_REGISTER then + internalerror(200409261); { the FUNCTION_RESULT_REG is already allocated } + if getsupreg(resultparaloc^.register)LOC_REGISTER then internalerror(200409141); { the function result registers are already allocated } + if getsupreg(retloc.registerlow)