summaryrefslogtreecommitdiffstats
path: root/gcc/fortran/gfortran.h
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-17 00:02:53 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-17 00:02:53 +0000
commit78787e4bead7a62191e20684bf7a82c247e9eba9 (patch)
tree8b3497c0385f850e087ede30b150e5e567d20343 /gcc/fortran/gfortran.h
parent515fdcc2ca08f07efac24d07e06df73230961fd9 (diff)
downloadppe42-gcc-78787e4bead7a62191e20684bf7a82c247e9eba9.tar.gz
ppe42-gcc-78787e4bead7a62191e20684bf7a82c247e9eba9.zip
* gfortran.h (gfc_equiv_info): Add length field.
* trans-common.c (copy_equiv_list_to_ns): Set the length field. * dependency.c (gfc_are_equivalenced_arrays): Use both the offset and length fields to determine whether the two equivalenced symbols overlap in memory. * gfortran.dg/dependency_13.f90: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112162 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/gfortran.h')
-rw-r--r--gcc/fortran/gfortran.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fortran/gfortran.h b/gcc/fortran/gfortran.h
index 2a5d01c344e..24c92b3e0eb 100644
--- a/gcc/fortran/gfortran.h
+++ b/gcc/fortran/gfortran.h
@@ -1352,6 +1352,7 @@ typedef struct gfc_equiv_info
{
gfc_symbol *sym;
HOST_WIDE_INT offset;
+ HOST_WIDE_INT length;
struct gfc_equiv_info *next;
} gfc_equiv_info;
OpenPOWER on IntegriCloud