This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Aliases ...


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

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]