2013/11/5 Jakub Jelinek <ja...@redhat.com>: > On Tue, Nov 05, 2013 at 05:13:12PM +0400, Ilya Enkovich wrote: >> It's sad I cannot just initialize bounds in Bounds Tables for .tdata, >> memcpy would do all the job for me copying them for each new TLS > > Why do you think so? glibc will surely use an internal version of > memcpy rather than the global one, so unless glibc is MPX enabled, it would > not do the job. > >> instance. The other way is to move all bounds initialization for TLS >> objects into separate constructor. How can I make such constructor? > > Just create a constructor for those, similarly how the C++ FE for __thread > vars with constructors (or OpenMP lowering for #pragma omp threadprivate > vars with constructors) expands them.
Will look into it. Thanks! Ilya > > Jakub