This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [libgfortran,patch] C99 complex cleanup
- From: François-Xavier Coudert <fxcoudert at gmail dot com>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Mon, 26 Sep 2005 17:05:16 +0200
- Subject: Re: [libgfortran,patch] C99 complex cleanup
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oBjFuyrWwL0oXvvv6OGCDcCJFd8yXYrSuAapU0mXzaMXkXV3j5Xq+OF550TBM4VrAOBbEngEUzpak5XxsdeH5XWsY/w/dZQeEX0PcaMKYAfzSHlO6CVwqEwuRj9sM2zAcjoOoo/1p8XIPG7CjajayNmO9Ijqr7xSx/0YpzJ1Bqk=
- References: <433460A2.4010704@gmail.com> <200509261451.j8QEppq42394@makai.watson.ibm.com>
- Reply-to: François-Xavier Coudert <fxcoudert at gmail dot com>
> /farm/dje/src/src/libgfortran/intrinsics/c99_functions.c:565: error: redefinition of 'clog'
> /usr/include/complex.h:235: error: previous definition of 'clog' was here
It appears that AIX has the following in /usr/include/complex.h:
static double complex clog(double complex z)
{
return (__clog(z));
}
So, the configure check for clog in libm fails (there is no clog in
the library, only __clog) while clog is actually provided by the
system (hence the error). I didn't know that kind of thing was allowed
(if it is, what are the libm tests worth?). If someone can help
replacing the tests such as
AC_CHECK_LIB([m],[clogf],[AC_DEFINE([HAVE_CLOGF],[1],[libm includes clogf])])
by another more apropriate test, then of we go. Otherwise, the patch
should be reverted.
FX