This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Fix weak handling with GCC 3.4+
On Fri, Jan 03, 2003 at 02:53:53PM -0800, Geoff Keating wrote:
> Another underspecified GCC extension!
No it isn't.
> I would expect that in
>
> __thread int foo = 0;
> extern __typeof (foo) foo;
>
> the second declaration would have no effect, just as in
>
> static int foo = 0;
> extern __typeof (foo) foo;
>
> because 'extern' is not a storage class specifier.
Please re-read the documentation I wrote for __thread.
It contains rationale for why all declarations of foo
must specify __thread.
r~