This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]