[PATCH] Revert Revert r238497 because of PR 71961.
authorRenlin Li <renlin.li@arm.com>
Thu, 28 Jul 2016 11:21:53 +0000 (11:21 +0000)
committerRenlin Li <renlin@gcc.gnu.org>
Thu, 28 Jul 2016 11:21:53 +0000 (11:21 +0000)
commit7c428aa29d75ef163c334cf3974f87b3630d8b8b
tree36cf158bc4248a1de2f2b7944f5c6180fe9c0f02
parentb505225ba4de6de34a791571354a0df5d1bd2ed7
[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.li@arm.com>

Revert
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".

gcc/testsuite/ChangeLog:

2016-07-28  Renlin Li  <renlin.li@arm.com>

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

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

From-SVN: r238815
gcc/fortran/ChangeLog
gcc/fortran/dependency.c
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dependency_47.f90 [deleted file]