[PATCH] D27035: [ELF][MIPS] Turn Config->Threads off for MIPS targets

Simon Atanasyan via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 22 21:35:08 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL287740: [ELF][MIPS] Turn Config->Threads off for MIPS targets (authored by atanasyan).

Changed prior to commit:
  https://reviews.llvm.org/D27035?vs=79023&id=79025#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D27035

Files:
  lld/trunk/ELF/Driver.cpp


Index: lld/trunk/ELF/Driver.cpp
===================================================================
--- lld/trunk/ELF/Driver.cpp
+++ lld/trunk/ELF/Driver.cpp
@@ -509,6 +509,12 @@
   Config->Verbose = Args.hasArg(OPT_verbose);
   Config->WarnCommon = Args.hasArg(OPT_warn_common);
 
+  if (Config->EMachine == EM_MIPS)
+    // For now MipsGotSection class is not ready for concurent access
+    // from multiple thread. The problem is in the getPageEntryOffset
+    // method. So turn Threads off for this target.
+    Config->Threads = false;
+
   Config->DynamicLinker = getString(Args, OPT_dynamic_linker);
   Config->Entry = getString(Args, OPT_entry);
   Config->Fini = getString(Args, OPT_fini, "_fini");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27035.79025.patch
Type: text/x-patch
Size: 710 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161123/aec8ec75/attachment.bin>


More information about the llvm-commits mailing list