Aliases ...
Andreas Jaeger
aj@suse.de
Fri Jan 14 09:09:00 GMT 2005
Let's look closer at one example:
../sysdeps/ieee754/dbl-64/s_isinf.c:29: warning: ‘isinf’ aliased to undefined symbol ‘__isinf’
The function is:
int
__isinf (double x)
{
int32_t hx,lx;
EXTRACT_WORDS(hx,lx,x);
lx |= (hx & 0x7fffffff) ^ 0x7ff00000;
lx |= -lx;
return ~(lx >> 31) & (hx >> 30);
}
hidden_def (__isinf)
weak_alias (__isinf, isinf)
And the warning appears for the weak_alias. If I change it to:
weak_alias (__GI___isinf, isinf)
Everything is fine.
so, is this the right way to do - and should we add a new macro, e.g.
hidden_weak_alias to use in place of weak_alias above?
Or how should this be solved to make GCC happy - and be convenienent
for glibc?
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/6bcd1414/attachment.sig>
More information about the Libc-hacker
mailing list