re PR fortran/71902 (Unneeded temporary on reallocatable character assignment)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 19 Jul 2016 21:25:33 +0000 (21:25 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 19 Jul 2016 21:25:33 +0000 (21:25 +0000)
commit6ed825558ec5df100d84c284c52618ec397456a5
tree118193899a3b655d59e43f384407b7a266f4249c
parent4833f5615ea56f73106ca8537d0a8b50463fd164
re PR fortran/71902 (Unneeded temporary on reallocatable character assignment)

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.

From-SVN: r238497
gcc/fortran/ChangeLog
gcc/fortran/dependency.c
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dependency_47.f90 [new file with mode: 0644]