[Bug fortran/45689] [F03] Missing transformational intrinsic in the trans_func_f2003 list

tkoenig at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 2 18:14:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45689

--- Comment #17 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Tue Jan  2 18:14:04 2018
New Revision: 256088

URL: https://gcc.gnu.org/viewcvs?rev=256088&root=gcc&view=rev
Log:
2017-01-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/45689
        * intrinsic.c (add_function): Add gfc_simplify_maxloc and
        gfc_simplify_minloc to maxloc and minloc, respectively.
        * intrinsic.h: Add prototypes for gfc_simplify_minloc
        and gfc_simplify_maxloc.
        * simplify.c (min_max_chose): Adjust prototype.  Modify function
        to have a return value which indicates if the extremum was found.
        (is_constant_array_expr): Fix typo in comment.
        (simplify_minmaxloc_to_scalar): New function.
        (simplify_minmaxloc_nodim): New function.
        (new_array): New function.
        (simplify_minmaxloc_to_array): New function.
        (gfc_simplify_minmaxloc): New function.
        (simplify_minloc): New function.
        (simplify_maxloc): New function.

2017-01-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/45689
        * gfortran.dg/minloc_4.f90: New test case.
        * gfortran.dg/maxloc_4.f90: New test case.


Added:
    trunk/gcc/testsuite/gfortran.dg/maxloc_4.f90
    trunk/gcc/testsuite/gfortran.dg/minloc_4.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/intrinsic.c
    trunk/gcc/fortran/intrinsic.h
    trunk/gcc/fortran/simplify.c


More information about the Gcc-bugs mailing list