This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32980] Vendor extension: Intrinsic functions (D)GAMMA, LGAMMA (ALGAMA/DLGAMA)
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Aug 2007 17:08:29 -0000
- Subject: [Bug fortran/32980] Vendor extension: Intrinsic functions (D)GAMMA, LGAMMA (ALGAMA/DLGAMA)
- References: <bug-32980-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from burnus at gcc dot gnu dot org 2007-08-21 17:08 -------
Created an attachment (id=14091)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14091&action=view)
invoke.texi patch
Note: I did not mention "Fortran 2008" and I also did not include "LOG_GAMMA"
(F2008 name of "LGAMMA").
LGAMMA: lgamma,lgammaf,lgammal are part of C99.
GAMMA: "gamma" is a vendor extension, but C99 has the "true Gamma function":
tgamma, tgammaf, tgammal.
(Contrary to Fortran, C allows all values but returns NaN (neg.int.) or +/-INF
(+/-0) for values excluded in Fortran.)
As the functions are part of C99, gcc offers these as BUILD_IN_*.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32980