From: Andreas Jaeger <aj@suse.de>
To: Roland McGrath <roland@redhat.com>
Cc: Richard Henderson <rth@redhat.com>,
Glibc hackers <libc-hacker@sources.redhat.com>
Subject: Re: Aliases ...
Date: Fri, 14 Jan 2005 18:41:00 -0000 [thread overview]
Message-ID: <m3is5z4zwn.fsf@gromit.moeb> (raw)
In-Reply-To: <200501141641.j0EGf4lV014739@magilla.sf.frob.com> (Roland McGrath's message of "Fri, 14 Jan 2005 08:41:04 -0800")
[-- Attachment #1: Type: text/plain, Size: 722 bytes --]
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
[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]
next prev parent reply other threads:[~2005-01-14 18:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-09 21:00 Aliases Andreas Jaeger
[not found] ` <20050109232721.GA23478@redhat.com>
2005-01-10 6:11 ` Aliases Andreas Jaeger
2005-01-14 9:09 ` Aliases Andreas Jaeger
2005-01-30 10:36 ` Aliases Andreas Jaeger
2005-01-14 8:54 ` Aliases Andreas Jaeger
2005-01-14 16:41 ` Aliases Roland McGrath
2005-01-14 18:41 ` Andreas Jaeger [this message]
2005-01-14 18:56 ` Aliases Roland McGrath
2005-01-10 17:14 ` Aliases H. J. Lu
2005-01-10 17:27 ` Aliases H. J. Lu
[not found] <20050114192642.GC19955@redhat.com>
2005-01-14 19:30 ` Aliases Roland McGrath
2005-01-14 20:04 ` Aliases Jakub Jelinek
2005-01-15 7:19 ` Aliases Andreas Jaeger
2005-01-15 9:35 ` Aliases Jakub Jelinek
2005-01-15 9:49 ` Aliases Andreas Jaeger
2005-01-14 20:23 ` Aliases Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3is5z4zwn.fsf@gromit.moeb \
--to=aj@suse.de \
--cc=libc-hacker@sources.redhat.com \
--cc=roland@redhat.com \
--cc=rth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).