Aliases ...
Andreas Jaeger
aj@suse.de
Fri Jan 14 18:41:00 GMT 2005
Roland McGrath <roland@redhat.com> writes:
>> Here's a patch to initialize it - it removes the warning.
>
> This really happens with __thread? The right thing when this issue comes
> up is to use __attribute__((nocommon)).
This test case does indeed warn:
__thread int errno __attribute__ ((nocommon));
extern __thread int __libc_errno __attribute__ ((alias ("errno")));
with:
test.i:2: warning: ‘__libc_errno’ aliased to undefined symbol ‘errno’
Initialising it to 0 fixes it,
Andreas
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-hacker/attachments/20050114/623ac4a4/attachment.sig>
More information about the Libc-hacker
mailing list