This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33942] FreeBSD gfortran interprets an external function as a library function?
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Oct 2007 19:41:58 -0000
- Subject: [Bug fortran/33942] FreeBSD gfortran interprets an external function as a library function?
- References: <bug-33942-14284@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from kargl at gcc dot gnu dot org 2007-10-29 19:41 -------
The problem is that configure.ac is missing a check for [t]gamma[fl].
AC_CHECK_LIB([m],[tgammaf],[AC_DEFINE([HAVE_TGAMMAF],[1],[libm includes
tgammaf])])
AC_CHECK_LIB([m],[tgamma],[AC_DEFINE([HAVE_TGAMMA],[1],[libm includes
tgamma])])
AC_CHECK_LIB([m],[tgammal],[AC_DEFINE([HAVE_TGAMMAL],[1],[libm includes
tgammal])])
If a proper patch had been applied to libgfortran when the gamma function was
added, then one would have found that *BSD has a tgamma function but no
tgammaf.
At which point, one could have added the required tgammaf wrapper to
c99_functions.c.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33942