Aliases ...

Jakub Jelinek jakub@redhat.com
Sat Jan 15 09:35:00 GMT 2005


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.

	Jakub



More information about the Libc-hacker mailing list