* it must be decided in allocate_tls_register if a tls register is allocated

git-svn-id: trunk@43131 -
This commit is contained in:
florian 2019-10-05 20:48:28 +00:00
parent c0372f80e0
commit 7ee889d4ec

View File

@ -1696,8 +1696,8 @@ implementation
{ allocate got register if needed }
allocate_got_register(aktproccode);
if pi_uses_threadvar in flags then
allocate_tls_register(aktproccode);
{ allocate got register if needed }
allocate_tls_register(aktproccode);
{ Allocate space in temp/registers for parast and localst }
current_filepos:=entrypos;
@ -1854,7 +1854,6 @@ implementation
cg.g_maybe_tls_init(templist);
aktproccode.insertlistafter(stackcheck_asmnode.currenttai,templist);
{ re-enable if more code at the end is ever generated here
cg.set_regalloc_live_range_direction(rad_forward);
}