Commits

Iain Buclaw committed ff35bec

64bit IASM fix, move tls definitions to d-objfile, add _tls_index stub for MinGW.

  • Participants
  • Parent commits d52ae1b

Comments (0)

Files changed (4)

File d/d-asm-i386.h

     { "popad",  Op_Invalid },
     { "popfd",  Op_Invalid },
     { "popfq",  Op_SizedStack },
-    { "popq",   Op_SizedStack },
+    { "popq",   Op_DstQ },
     { "pshufb", Op_DstSrcImmM },
     { "psignb", Op_DstSrcSSE },
     { "psignd", Op_DstSrcSSE },

File d/d-irstate.cc

     else if (decl->isUnitTestDeclaration())
         mi.unitTests.push(decl);
 
-    // Write out _tlsstart/_tlsend.
-    if (decl->isMain())
-        obj_tlssections();
-
     return new_irs;
 }
 

File d/d-objfile.cc

     Symbol * s = f->toSymbol();
     tree t = s->Stree;
 
+    // Write out _tlsstart/_tlsend.
+    if (f->isMain())
+        obj_tlssections();
+
     d_add_global_function(t);
 
     if (TREE_CODE(t) == FUNCTION_DECL)

File d/druntime/core/thread.d

             {
                 extern int _tlsstart;
                 extern int _tlsend;
+                __gshared int _tls_index;   // %% Find somewhere to put this.
             }
         }
         else