https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71902
--- Comment #6 from Renlin Li <renlin at gcc dot gnu.org> --- Author: renlin Date: Thu Jul 28 11:21:53 2016 New Revision: 238815 URL: https://gcc.gnu.org/viewcvs?rev=238815&root=gcc&view=rev Log: [PATCH] Revert Revert r238497 because of PR 71961. This patch reverts the change for PR 71902 since it causes 178.gagel miscompile in spec2000 as reported in PR 71961 which was observed in x86_64, aarch64, powerpc64. gcc/fortran/ChangeLog: 2016-07-28 Renlin Li <renlin...@arm.com> Revert 2016-07-19 Thomas Koenig <tkoe...@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". gcc/testsuite/ChangeLog: 2016-07-28 Renlin Li <renlin...@arm.com> Revert 2016-07-19 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/71902 * gfortran.dg/dependency_47.f90: New test. Removed: 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