[gfortran] Adding quite a few intrinsics

Janne Blomqvist jblomqvi@cc.hut.fi
Wed Nov 9 15:33:00 GMT 2005


On Wed, Nov 09, 2005 at 03:38:51PM +0100, FX Coudert wrote:
> The attached patch (which the fortran@ subscribers already had a glance 
> at) adds the FTELL, FGETC, FGET, FPUTC, FPUT, COMPLEX, AND, OR and XOR 
> intrinsics to gfortran (they were available in g77 in category "GNU 
> intrinsics").

[snip]

+  add_sym_2 ("xor", 1, 0, BT_UNKNOWN, 0, GFC_STD_F95,

This should be GFC_STD_GNU.

BTW, do these g77 bit twiddling intrinsics (xor, and, or) do anything
that the F95 standard ones (iand, ieor, ior) don't? If that's the
case, perhaps we should classify them under GFC_STD_LEGACY instead?

Before we have yet another discussion about the meaning of LEGACY
vs. GNU, I think Brooks Moses put it rather nicely at

http://gcc.gnu.org/ml/fortran/2005-09/msg00550.html

In fact, I think BM:s definition is so good that we should adopt it,
and spell it out in the documentation, so that our users will
understand the distinction too.

-- 
Janne Blomqvist



More information about the Fortran mailing list