Commit bf4d99cf by Tobias Schlüter Committed by Tobias Schlüter

re PR libfortran/16137 (Fortran compiler unable to produce executables as…

re PR libfortran/16137 (Fortran compiler unable to produce executables as libfortran depends on C99 math functions)

PR libfortran/16137
* config.h.in (HAVE_POWF): Undefine.
* configure.ac: Check for 'powf' in library.
* configure: Regenerate.
* intrinsics/c99_functions.c (powf): New function.

From-SVN: r88128
parent 59c86e4b
2004-09-26 Tobias Schlueter <tobis.schlueter@physik.uni-muenchen.de>
PR libfortran/16137
* config.h.in (HAVE_POWF): Undefine.
* configure.ac: Check for 'powf' in library.
* configure: Regenerate.
* intrinsics/c99_functions.c (powf): New function.
2004-09-24 Tobias Schlueter <tobis.schlueter@physik.uni-muenchen.de>
* intrinsics/etime.c (etime_): New function.
......
......@@ -114,6 +114,9 @@
/* libm includes nextafterf */
#undef HAVE_NEXTAFTERF
/* libm includes powf */
# undef HAVE_POWF
/* libm includes round */
#undef HAVE_ROUND
......
......@@ -184,6 +184,7 @@ AC_CHECK_LIB([m],[logf],[AC_DEFINE([HAVE_LOGF],[1],[libm includes logf])])
AC_CHECK_LIB([m],[log10f],[AC_DEFINE([HAVE_LOG10F],[1],[libm includes log10f])])
AC_CHECK_LIB([m],[nextafter],[AC_DEFINE([HAVE_NEXTAFTER],[1],[libm includes nextafter])])
AC_CHECK_LIB([m],[nextafterf],[AC_DEFINE([HAVE_NEXTAFTERF],[1],[libm includes nextafterf])])
AC_CHECK_LIB([m],[powf],[AC_DEFINE([HAVE_POWF],[1],[libm includes powf])])
AC_CHECK_LIB([m],[round],[AC_DEFINE([HAVE_ROUND],[1],[libm includes round])])
AC_CHECK_LIB([m],[roundf],[AC_DEFINE([HAVE_ROUNDF],[1],[libm includes roundf])])
AC_CHECK_LIB([m],[scalbnf],[AC_DEFINE([HAVE_SCALBNF],[1],[libm includes scalbnf])])
......
......@@ -245,6 +245,15 @@ nextafterf(float x, float y)
}
#endif
#ifndef HAVE_POWF
float
powf(float x, float y)
{
return (float) pow(x, y);
}
#endif
/* Note that if HAVE_FPCLASSIFY is not defined, then NaN is not handled */
/* Algorithm by Steven G. Kargl. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment