All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Programmingkid <programmingkidx@gmail.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
	qemu-devel qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] qemu-coroutine.c: error: thread-local storage not supported for this target
Date: Sat, 24 Jan 2015 19:54:24 +0100	[thread overview]
Message-ID: <54C3EA60.5080801@redhat.com> (raw)
In-Reply-To: <6EF0A76B-7542-4045-B983-19076069A7F0@gmail.com>



On 23/01/2015 23:54, Programmingkid wrote:
>> Sorry, I was wrong.  I missed that you are using 10.6.x.
>> 
>> Thread-local storage was introduced on Mac OS X in 10.7.  For
>> 10.6.x you'll have to compile GCC 4.3 or newer yourself (or take it
>> from fink/homebrew/whatever the Mac folks use these days).
> 
> The code that causes this problem needs to be #ifdef'ed. I'm just not
> sure what the problem code is.

Thread-local storage will become more and more fundamental as QEMU makes
more use of threads.  Another use of __thread will be committed in a
matter of weeks; __thread is simpler and potentially faster than pthread
TLS.

A possible alternative would be to enable QEMU to compile with a C++
compiler and use Boost's thread-local storage module.  Using #ifdef
makes code ugly for no reason, and is not an acceptable alternative.

Note that GCC 4.3 was released almost seven years ago; we've been
requiring it on Windows for three years (commit 00dccaf, coroutine:
introduce coroutines, 2011-01-17), and no one has ever complained.

Apple is not providing it for Mac OS X 10.6.x only because of political
reasons.  Complain to them, not to the QEMU project.

Paolo

  reply	other threads:[~2015-01-24 18:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-23 19:27 [Qemu-devel] qemu-coroutine.c: error: thread-local storage not supported for this target Programmingkid
2015-01-23 20:33 ` Paolo Bonzini
2015-01-23 20:39   ` Programmingkid
2015-01-23 20:55     ` Paolo Bonzini
2015-01-23 21:33       ` Programmingkid
2015-01-23 21:37         ` Paolo Bonzini
2015-01-23 21:48           ` Paolo Bonzini
2015-01-23 22:54             ` Programmingkid
2015-01-24 18:54               ` Paolo Bonzini [this message]
2015-01-24 19:33                 ` Peter Maydell
2015-01-24 19:59                   ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54C3EA60.5080801@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=programmingkidx@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.