[gfortran] Adding quite a few intrinsics
FX Coudert
fxcoudert@gmail.com
Wed Nov 9 14:38:00 GMT 2005
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:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: intrinsics.diff
Type: application/octet-stream
Size: 47892 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20051109/17294008/attachment.obj>
More information about the Gcc-patches
mailing list