This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[gfortran] Adding quite a few intrinsics
- From: FX Coudert <fxcoudert at gmail dot com>
- To: fortran at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 9 Nov 2005 15:38:51 +0100
- Subject: [gfortran] Adding quite a few intrinsics
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"). They come with 9 testcases testing as much as I could
think of (both compiling, simplifying intrinsics, linking and
diagnosis). They don't come with a ChangeLog, because it's rather dull
to write (mainly "new function" and "new file" everywhere) and I'm on
it and will send it as soon as I get it done.
The ony thing I'm not quite satisfied of is the handling of COMPLEX
with INTEGER arguments. Currently, they basically get converted into
the default real kind, because I don't see a proper way to do it in the
general case. Suggestions are of course welcome, but I'd prefer getting
this commited even if that means fixing it later.
Built and tested this on ppc-darwin (I compared the behaviour with g77
behaviour to be sure). I apologize for not being able to make a proper
regtesting (i only do have a laptop, not much horsepower and few
occasions to charge the battery).
Thanks for reviewing this!
FX
:ADDPATCH fortran:
Attachment:
intrinsics.diff
Description: Binary data