Am Fri, 25 Mar 2016 09:15:06 +0000 schrieb Vincent R <l...@dlang.org>:
> > So the main question is: can we simply ditch gcc.gthreads and > > inline the code into rt.monitor? > > Thanks for all this information and it seems your knowledge is > far beyond mine so I cannot answer your last question but from > what you explain maybe it could be a better option. > What I can tel you for now is your patch works and allowed me to > generate a gdc compilier. > Now I let you decide what is the best option. Great! We've simply removed gthreads now: https://github.com/D-Programming-GDC/GDC/commit/096991b5817ac21ff6c81ea3759ad4a253deff59 It might take a few days till this is merged into the gdc-X branches though. BTW: When I tested MinGW I found a serious garbage collector bug: TLS variables are currently not scanned correctly. This means if you have GC objects only referenced from thread local memory these might get collected. I know how to fix this but it's not simple so it will take some time. If you run into this bug you could use DMD or LDC instead (IIRC you ran into an optlink bug when using DMD, but you could probably use the -mscoff32 or m64 options to avoid optlink).