[Dev] [SDK/Emulator] Re: Fwd: RE: yagl mac os

Stanislav Vorobiov s.vorobiov at samsung.com
Fri Oct 4 05:29:36 GMT 2013


> Did you subscribe mailing list("dev at lists.tizen.org <mailto:dev at lists.tizen.org>") ??
I did, it's just that original mail that I replied to was sent without a CC to the mailing list.

On 10/04/2013 04:41 AM, SeokYeon Hwang wrote:
> In our DIBS build system,
> 
> A "__thread" cause compilation error on Mac, "error: thread-local storage is unsupported for the current target".
> 
> If "10.4" can support TLS, we can not use TLS for compatibility.
> 
>  
> 
> I hope that I can apply "hotfix" next monday or tuesday. But if it is delayed, I think we can wait vorobiov's optimization work.
> 
>  
> 
> @ voroviov, voevodin.
> 
> Did you subscribe mailing list("dev at lists.tizen.org <mailto:dev at lists.tizen.org>") ??
> 
> I hope that we use mailing list to discuss emulator issues.
> 
>  
> 
> Thanks.
> 
>  
> 
> =======================================
> 
> vorobiov said,
> 
>  
> 
> Hi,
> 
> Also, currently we're doing performance optimizations and one of the points is to
> remove TLS, currently TLS is used just to simplify things, we could have just used a global variable and
> switch it inside yagl_thread_call, since YaGL threads are only active during this call.
> 
> Performance optimizations are scheduled until 11.oct, but I may need another week, there's
> a possibility to significatly improve performance (~ 2+ times) but it needs a bit more work.
> 
> In a meanwhile you can make a quick fix yourself for the TLS problem I guess...
> 
> P.S: Please CC e.voevoding at samsung.com next time
> 
>  
> 
> ------- *Original Message* -------
> 
> *Sender* : Thiago Macieira<thiago.macieira at intel.com>
> 
> *Date* : 2013-10-03 03:25 (GMT+09:00)
> 
> *Title* : Re: [Dev] [SDK/Emulator] Re: Fwd: RE: yagl mac os
> 
>  
> 
> 
> On quarta-feira, 2 de outubro de 2013 12:20:18, 황석연 wrote:
>> Dear Patrick,
>>  
>> I want to use clang on Mac.
>> Because it is default compiler and "__thread" keyword is usable with GCC
>> only. (I know that a TLS is exist on ELF format, so GCC on mac is not
>> support real TLS.)
>> I tested VIGS with pthread_getspecific / pthread_setspecific on clang.
>> A compilation VIGS on Mac is not urgent, so I think I would be able to push
>> modified code to GIT on next week.
> 
> I've just tested XCode 5.0 (using Clang) and the following source code
> compiled:
> 
> static __thread int x;
> void f(int y) { x = y; }
> int g() { return x; }
> 
> in another .c file:
> int main(int argc, char **argv)
> {
>     f(argc);
>     return g();
> }
> 
> It compiles fine also with -std=c89, -std=c99, -std=c11, -std=c++98, -std=c++11
> and -std=c++1y.
> 
> Why do you think it doesn't work?
> 
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
> 
>  
> 
>  
> 
>  
> 



More information about the Dev mailing list