This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/33942] FreeBSD gfortran interprets an external function as a library function?



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]