RFC: C++ PATCH to support dynamic initialization and destruction of C++11 and OpenMP TLS variables

Jason Merrill jason@redhat.com
Fri Oct 5 17:38:00 GMT 2012


On 10/05/2012 04:29 AM, Richard Guenther wrote:
> Or if we have the extra indirection via a reference anyway, we could
> have a pointer TLS variable (NULL initialized) that on the first access
> will trap where in a trap handler we could then perform initialization
> and setup of that pointer.

Interesting idea.  But I don't think there's any way to determine from a 
SEGV handler which null pointer needs to be initialized, and in any case 
users might want to have their own SEGV handlers.

Jason



More information about the Gcc-patches mailing list