aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/frontend-passes.c
diff options
context:
space:
mode:
authorRenlin Li <renlin.li@arm.com>2016-07-28 11:21:53 +0000
committerRenlin Li <renlin@gcc.gnu.org>2016-07-28 11:21:53 +0000
commit7c428aa29d75ef163c334cf3974f87b3630d8b8b (patch)
tree36cf158bc4248a1de2f2b7944f5c6180fe9c0f02 /gcc/fortran/frontend-passes.c
parentb505225ba4de6de34a791571354a0df5d1bd2ed7 (diff)
downloadgcc-7c428aa29d75ef163c334cf3974f87b3630d8b8b.zip
gcc-7c428aa29d75ef163c334cf3974f87b3630d8b8b.tar.gz
gcc-7c428aa29d75ef163c334cf3974f87b3630d8b8b.tar.bz2
[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
Diffstat (limited to 'gcc/fortran/frontend-passes.c')
-rw-r--r--gcc/fortran/frontend-passes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/frontend-passes.c b/gcc/fortran/frontend-passes.c
index d333c68..a543ab2 100644
--- a/gcc/fortran/frontend-passes.c
+++ b/gcc/fortran/frontend-passes.c
@@ -185,7 +185,7 @@ realloc_string_callback (gfc_code **c, int *walk_subtrees ATTRIBUTE_UNUSED,
current_code = c;
inserted_block = NULL;
changed_statement = NULL;
- n = create_var (expr2, "realloc_string");
+ n = create_var (expr2, "trim");
co->expr2 = n;
return 0;
}