Fix weak handling with GCC 3.4+
Richard Henderson
rth@twiddle.net
Fri Jan 3 23:05:00 GMT 2003
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~
More information about the Libc-alpha
mailing list