Ping! Re: [PATCH, Fortran] DEC extra integer intrinsics

Fritz Reese fritzoreese@gmail.com
Tue Aug 2 21:31:00 GMT 2016


On Tue, Aug 2, 2016 at 2:21 PM, Jerry DeLisle <jvdelisle@charter.net> wrote:
> On 08/01/2016 11:47 AM, Fritz Reese wrote:
>>
>> https://gcc.gnu.org/ml/fortran/2016-07/msg00091.html
>>
>> On Mon, Jul 18, 2016 at 12:51 PM, Fritz Reese <fritzoreese@gmail.com>
>> wrote:
>>>
>>> All,
>>>
>>> Attached is another extension patch introducing a new DEC
>>> compatibility flag -fdec-intrinsic-ints. With this flag the compiler
>>> recognizes the following variants for integer intrinsics which use a
>>> B/I/J/K prefix (with byte/integer/long/quad kind parameters):
>
>
> I have reviewed. Did you consider using make_alias to create these?
>
> Jerry

I had not noticed make_alias before. That would considerably cut the
size of the patch. I guess the difference would be the strictness on
kind - which is probably usually automatically converted by GNU
Fortran anyway. I'm okay with that change for clarity. Attached is
what that patch would look like (bootstraps+passes all tests on
x86_64-redhat-linux). If it's okay for trunk I'll commit it.

Author: Fritz O. Reese <fritzoreese@gmail.com>
Date:   Mon May 30 15:37:21 2016 -0400

    New flag for B/I/J/K variants of integer intrinsics.

    gcc/fortran/
        * lang.opt: New option -fdec-intrinsic-ints.
        * gfortran.texi, invoke.texi, intrinsics.texi: Update documentation.
        * options.c (set_dec_flags): Enable with -fdec.
        * intrinsic.c (add_function, add_subroutine): New B/I/J/K intrinsic
        variants.

    gcc/testsuite/gfortran.dg/
        * dec_intrinsic_ints.f90: New testcase.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: intrinsic_ints.patch
Type: text/x-patch
Size: 34409 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20160802/60d04476/attachment.bin>


More information about the Fortran mailing list