Aliases ...
Andreas Jaeger
aj@suse.de
Sat Jan 15 09:49:00 GMT 2005
Jakub Jelinek <jakub@redhat.com> writes:
> On Sat, Jan 15, 2005 at 08:19:16AM +0100, Andreas Jaeger wrote:
>> Jakub Jelinek <jakub@redhat.com> writes:
>>
>> > On Fri, Jan 14, 2005 at 11:30:15AM -0800, Roland McGrath wrote:
>> >> > If we need to, we can rearrange things such that aliases are
>> >> > delayed until the real end of the translation unit, but...
>> >>
>> >> This has always worked before, and initializing is ugly when you really
>> >> want bss symbols.
>> >
>> > That's a GCC4 bug that needs to be fixed there IMHO.
>>
>> Look at the email and bugreport that started this thread - RTH says
>> it's not a bug...
>
> That was talking about:
> int errno;
> extern int __libc_errno __attribute__ ((alias ("errno")));
>
> where I have no problems with gcc warning about it (although the
> warning could warn instead about alias to common symbol).
>
> But GCC warns even for:
> int errno __attribute__((nocommon));
> extern int __libc_errno __attribute__ ((alias ("errno")));
>
> and that is IMHO a bug.
Now I understood you.
Agreed - will you file a bugreport?
thanks,
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/20050115/b4cc77c0/attachment.sig>
More information about the Libc-hacker
mailing list