This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/65953] [5/6 Regression] undefined reference to static __thread variable
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 30 Apr 2015 18:43:37 +0000
- Subject: [Bug tree-optimization/65953] [5/6 Regression] undefined reference to static __thread variable
- Auto-submitted: auto-generated
- References: <bug-65953-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65953
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #1)
> Looks like a Mono bug to me. mono_jit_tls isn't __attribute__((used)), and
> the compiler determines it is a write-only variable (doesn't know the asm
> uses it).
I can think of one reason, the whole Coroutines and switching of the thread
behind the compiler with getcontext/setcontext.