[Patch, Fortran] PR32980 - Add GAMMA and LGAMMA intrinsics

Tobias Burnus burnus@net-b.de
Tue Aug 21 20:28:00 GMT 2007


Hi,

Tobias Schlüter wrote:
> I'm worried that this will lead to surprising results for people that
> have their own GAMMA functions defined.  Maybe a new std class is
> appropriate?  What's the opposite of "legacy"?  Maybe "incompatible",
> as in "even incompatible extensions"?

Are you suggest that GAMMA is only available with -std=f2008 and
-std=incompatible? I would find it extremely surprising if -std=f2003
and -std=gnu give a different result than -std=f2008! (Not that we have
Fortran 2008 yet, but it will come rather sooner than later.)

A proper Fortran program already uses "EXTERNAL GAMMA" or better an
explicit interface for nonintrinsic functions. Additionally, GAMMA is
present in several other compilers such as IBM lf95, g95 or openf95,
which thus have the same problem.

(When we have whole-file checks, one should put in a check whether a
user routine has the same name as an intrinsic procedure when no
intrinsic or external has been used, in which case a warning should be
printed.)

Tobias



More information about the Gcc-patches mailing list