Browse Source

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

git-svn-id: trunk@43131 -
florian 5 years ago
parent
commit
7ee889d4ec
1 changed files with 2 additions and 3 deletions
  1. 2 3
      compiler/psub.pas

+ 2 - 3
compiler/psub.pas

@@ -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);
             }