From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qtjt3-0007Mo-RG for qemu-devel@nongnu.org; Wed, 17 Aug 2011 13:26:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qtjsy-0000V1-Nq for qemu-devel@nongnu.org; Wed, 17 Aug 2011 13:26:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qtjsy-0000Uq-Gm for qemu-devel@nongnu.org; Wed, 17 Aug 2011 13:26:36 -0400 Message-ID: <4E4BF9C8.5070205@redhat.com> Date: Wed, 17 Aug 2011 10:26:32 -0700 From: Paolo Bonzini MIME-Version: 1.0 References: <4E4ABC12.3010008@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Compilation error of coroutine-win32.c with gcc version 3.4.5 (mingw-vista special r3) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Blue Swirl , qemu-devel , Roy Tam On 08/17/2011 10:23 AM, Stefan Hajnoczi wrote: >> > I don't know about Win32 TLS support, but at least OpenBSD/sparc64 >> > gcc/ld/ld.so/libc do not support __thread. According to manual, TLS is >> > not available everywhere: >> > http://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/Thread_002dLocal.html#Thread_002dLocal > Yeah, for OpenBSD we have the portable but slow GThread coroutine > implementation. I think (but I'm not sure) that a newer GCC on OpenBSD is able to convert __thread to pthread_key_setspecific. I'm trying to see if we can do something like Windows TLS at the qemu-thread level. Paolo