clang3.4 and C++11 thread_local on OS X

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

clang3.4 and C++11 thread_local on OS X

Nicola Gigante
Hello...

From the C++11 status page it seems that thread_local is supported from clang 3.3,
but with clang 3.4 shipped with xcode 5.1 I get:

error: thread-local storage is unsupported for the current target

I'm compiling on x86_64 which is the most common target I can think of... so,
is it unsupported on OS X yet? Where is it supported? on linux? on BSDs?
Maybe something about this should be stated on the status page..

Thank you very much,
Nicola
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: clang3.4 and C++11 thread_local on OS X

Jean-Daniel Dupas-4

Le 5 avr. 2014 à 18:46, Nicola Gigante <[hidden email]> a écrit :

>
> Hello...
>
> From the C++11 status page it seems that thread_local is supported from clang 3.3,
> but with clang 3.4 shipped with xcode 5.1 I get:
>
> error: thread-local storage is unsupported for the current target

What is your project "Deployment Target" build setting ?



_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: clang3.4 and C++11 thread_local on OS X

Nicola Gigante

Il giorno 07/apr/2014, alle ore 11:18, Jean-Daniel Dupas <[hidden email]> ha scritto:

>
> Le 5 avr. 2014 à 18:46, Nicola Gigante <[hidden email]> a écrit :
>
>>
>> Hello...
>>
>> From the C++11 status page it seems that thread_local is supported from clang 3.3,
>> but with clang 3.4 shipped with xcode 5.1 I get:
>>
>> error: thread-local storage is unsupported for the current target
>
> What is your project "Deployment Target" build setting ?
>
>
It's "OS X 10.9”, and the architecture is x86_64

Thanks,
Nicola
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: clang3.4 and C++11 thread_local on OS X

Jean-Daniel Dupas-4

Le 7 avr. 2014 à 11:37, Nicola Gigante <[hidden email]> a écrit :

>
>
> Il giorno 07/apr/2014, alle ore 11:18, Jean-Daniel Dupas <[hidden email]> ha scritto:
>
>>
>> Le 5 avr. 2014 à 18:46, Nicola Gigante <[hidden email]> a écrit :
>>
>>>
>>> Hello...
>>>
>>> From the C++11 status page it seems that thread_local is supported from clang 3.3,
>>> but with clang 3.4 shipped with xcode 5.1 I get:
>>>
>>> error: thread-local storage is unsupported for the current target
>>
>> What is your project "Deployment Target" build setting ?
>>
>>
> It's "OS X 10.9”, and the architecture is x86_64

IIRC, the OS X support has been implemented in clang between clang 3.4 and 3.5. I though it was already available in Xcode but look like you're right.

So, using C++ thread_local already works with actual clang release and TOT and will hopefully appears soon in Xcode too.



_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: clang3.4 and C++11 thread_local on OS X

Nicola Gigante

Il giorno 07/apr/2014, alle ore 12:01, Jean-Daniel Dupas <[hidden email]> ha scritto:


Le 7 avr. 2014 à 11:37, Nicola Gigante <[hidden email]> a écrit :



Il giorno 07/apr/2014, alle ore 11:18, Jean-Daniel Dupas <[hidden email]> ha scritto:


Le 5 avr. 2014 à 18:46, Nicola Gigante <[hidden email]> a écrit :


Hello...

From the C++11 status page it seems that thread_local is supported from clang 3.3,
but with clang 3.4 shipped with xcode 5.1 I get:

error: thread-local storage is unsupported for the current target

What is your project "Deployment Target" build setting ?


It's "OS X 10.9”, and the architecture is x86_64

IIRC, the OS X support has been implemented in clang between clang 3.4 and 3.5. I though it was already available in Xcode but look like you're right.

So, using C++ thread_local already works with actual clang release and TOT and will hopefully appears soon in Xcode too.

Ok!
Thank you very much for the clarification!

Bye,
Nicola

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev