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

Reply via email to