bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: M4 1.4.14 on AIX 7.1BETA


From: Bruno Haible
Subject: Re: M4 1.4.14 on AIX 7.1BETA
Date: Sat, 31 Jul 2010 12:03:23 +0200
User-agent: KMail/1.9.9

Rainer Tammer wrote:
> AIX 7.1BETA
> 
> # ./testlibm
> acos is in libc
> asin is in libc
> atan is in libc
> atan2 is in libc
> cbrt is in libc
> copysign is in libc
> cos is in libc
> cosh is in libc
> erf is in libc
> erfc is in libc
> exp is in libc
> fmod is in libc
> hypot is in libc
> j0 is in libc
> j1 is in libc
> jn is in libc
> lgamma is in libc
> log is in libc
> log10 is in libc
> log1p is in libc
> pow is in libc
> remainder is in libc
> sin is in libc
> sinh is in libc
> sqrt is in libc
> tan is in libc
> tanh is in libc
> y0 is in libc
> y1 is in libc
> yn is in libc

Hmm, there is apparently something wrong with the test program that I used.
Maybe xlc's optimizations are removing the use of the function pointer.

Can you please try this one, instead?

  for func in acos asin atan atan2 cbrt copysign cos cosh erf erfc exp \
              fmod hypot j0 j1 jn lgamma log log10 log1p pow remainder \
              sin sinh sqrt tan tanh y0 y1 yn; do
    (echo '#include <math.h>'; echo "double (*funcptr)() = (double 
(*)())$func;"; echo 'int main() { return funcptr (1.6180339887) < 0.3; }') > 
conftest.c
    if gcc conftest.c > /dev/null 2>/dev/null; then
      echo "$func is in libc"
    else
      echo "$func requires libm"
    fi
  done

Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]