thread-local storage: c front end and generic backend patch

Fergus Henderson fjh@cs.mu.OZ.AU
Wed May 29 23:48:00 GMT 2002


On 22-May-2002, Jakub Jelinek <jakub@redhat.com> wrote:
> Shouldn't be __thread const int i = 7; either forbidden, or __thread
> ignored for it (in order of preference)?

Ignoring __thread here would give the wrong semantics --
the constant should have different addresses for different threads.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.



More information about the Gcc-patches mailing list