http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58127

--- Comment #7 from Jan Hubicka <hubicka at ucw dot cz> ---
> 
> that's kind of a pity, since IIRC one of the main reasons for recasting the
> emutls implementation as a separate pass was to allow for uses like this; 
> but, having said that, probably not a high priority.
MThere are performance implications of doing so.   One way would be to add
facility to insert new variables into emutls late (it is probably doable).
Other easy way around would be to add gcov function to set both pointers to
proper values and do it as function call.  

I am not sure if this is feasible performance wise - the counter is in TLS
just to avoid too many colisions. Generally profiling should work resonably
well even without TLS for that.

> 
> #if defined(HAVE_CC_TLS) && !defined (USE_EMUTLS)
> 
> does, indeed, work.

If you do have chance to commit it, consider the patch preapproved.  I 
will be offline during the afternoon.

Honza

Reply via email to