[Bug fortran/71902] [5/6/7 Regression] Unneeded temporary on reallocatable character assignment

tkoenig at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 19 21:26:00 GMT 2016


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

--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Tue Jul 19 21:25:33 2016
New Revision: 238497

URL: https://gcc.gnu.org/viewcvs?rev=238497&root=gcc&view=rev
Log:
2016-07-19  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/71902
        * dependency.c (gfc_check_dependency): Use dep_ref.  Handle case
        if identical is true and two array element references differ.
        (gfc_dep_resovler):  Move most of the code to dep_ref.
        (dep_ref):  New function.
        * frontend-passes.c (realloc_string_callback):  Name temporary
        variable "realloc_string".

2016-07-19  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/71902
        * gfortran.dg/dependency_47.f90:  New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/dependency_47.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/dependency.c
    trunk/gcc/fortran/frontend-passes.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list