|
@@ -608,7 +608,7 @@ implementation
|
|
|
oldprocinfo : tprocinfo;
|
|
|
oldaktmaxfpuregisters : longint;
|
|
|
oldfilepos : tfileposinfo;
|
|
|
- templist, symlist : Taasmoutput;
|
|
|
+ templist : Taasmoutput;
|
|
|
headertai : tai;
|
|
|
begin
|
|
|
{ the initialization procedure can be empty, then we
|
|
@@ -636,7 +636,6 @@ implementation
|
|
|
aktbreaklabel:=nil;
|
|
|
aktcontinuelabel:=nil;
|
|
|
templist:=Taasmoutput.create;
|
|
|
- symlist:=Taasmoutput.create;
|
|
|
|
|
|
{ add parast/localst to symtablestack }
|
|
|
add_to_symtablestack;
|
|
@@ -709,12 +708,6 @@ implementation
|
|
|
procdef.has_paraloc_info:=true;
|
|
|
end;
|
|
|
|
|
|
- { allocate the symbol associated with the procedure, so that }
|
|
|
- { references to itself are not treated as references to }
|
|
|
- { externals }
|
|
|
- aktfilepos:=entrypos;
|
|
|
- gen_proc_symbol(symlist);
|
|
|
-
|
|
|
{ generate code for the node tree }
|
|
|
do_secondpass(code);
|
|
|
aktproccode.concatlist(exprasmlist);
|
|
@@ -777,9 +770,10 @@ implementation
|
|
|
|
|
|
{ generate symbol and save end of header position }
|
|
|
aktfilepos:=entrypos;
|
|
|
- headertai:=tai(symlist.last);
|
|
|
+ gen_proc_symbol(templist);
|
|
|
+ headertai:=tai(templist.last);
|
|
|
{ insert symbol }
|
|
|
- aktproccode.insertlist(symlist);
|
|
|
+ aktproccode.insertlist(templist);
|
|
|
|
|
|
{ Free space in temp/registers for parast and localst, must be
|
|
|
done after gen_entry_code }
|
|
@@ -900,6 +894,9 @@ implementation
|
|
|
var
|
|
|
_class,hp : tobjectdef;
|
|
|
begin
|
|
|
+ { allocate the symbol for this procedure }
|
|
|
+ alloc_proc_symbol(procdef);
|
|
|
+
|
|
|
{ insert symtables for the class, but only if it is no nested function }
|
|
|
if assigned(procdef._class) and
|
|
|
not(assigned(parent) and
|