Aliases ...

Andreas Jaeger aj@suse.de
Sun Jan 30 10:36:00 GMT 2005


I still see these warnings and would like to help getting them fixed.

Richard, what do you suggest is the best thing to do?

Andreas

Andreas Jaeger <aj@suse.de> writes:

> 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
-- 
 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/20050130/ec1b9cdd/attachment.sig>


More information about the Libc-hacker mailing list