aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-07-01 17:13:28 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-07-01 17:13:28 +0200
commita8dbab92f0f397bd4b5f5a8d4fc08823006151be (patch)
tree76e4197fa3c97b1491a427e833fb69f6a75ff09b /gcc
parent059541fd113a360000b08753e355898cdeeaa431 (diff)
downloadgcc-a8dbab92f0f397bd4b5f5a8d4fc08823006151be.zip
gcc-a8dbab92f0f397bd4b5f5a8d4fc08823006151be.tar.gz
gcc-a8dbab92f0f397bd4b5f5a8d4fc08823006151be.tar.bz2
re PR fortran/71717 (A gfortran silent "wrong code" bug in the transition from 4.9.0 -> 4.9.1, using OpenMP.)
PR fortran/71717 * trans-openmp.c (gfc_omp_privatize_by_reference): Return false for GFC_DECL_ASSOCIATE_VAR_P with POINTER_TYPE. * testsuite/libgomp.fortran/associate3.f90: New test. From-SVN: r237916
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fortran/ChangeLog6
-rw-r--r--gcc/fortran/trans-openmp.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index e399d35..406a3822 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,9 @@
+2016-07-01 Jakub Jelinek <jakub@redhat.com>
+
+ PR fortran/71717
+ * trans-openmp.c (gfc_omp_privatize_by_reference): Return false
+ for GFC_DECL_ASSOCIATE_VAR_P with POINTER_TYPE.
+
2016-06-30 Jakub Jelinek <jakub@redhat.com>
PR fortran/71704
diff --git a/gcc/fortran/trans-openmp.c b/gcc/fortran/trans-openmp.c
index b005d39..0d646ed 100644
--- a/gcc/fortran/trans-openmp.c
+++ b/gcc/fortran/trans-openmp.c
@@ -61,6 +61,7 @@ gfc_omp_privatize_by_reference (const_tree decl)
if (GFC_DECL_GET_SCALAR_POINTER (decl)
|| GFC_DECL_GET_SCALAR_ALLOCATABLE (decl)
|| GFC_DECL_CRAY_POINTEE (decl)
+ || GFC_DECL_ASSOCIATE_VAR_P (decl)
|| VOID_TYPE_P (TREE_TYPE (TREE_TYPE (decl))))
return false;