diff options
author | Roger Sayle <roger@eyesopen.com> | 2006-03-25 01:28:11 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2006-03-25 01:28:11 +0000 |
commit | 31708dc6447f26d71c005f440c83de0a0bc590ef (patch) | |
tree | 8535c89df5c94aed2fd99466c926796da843b79c /gcc/fortran/gfortran.h | |
parent | 9e51ddaa6e4902e734b803b9ede861eb499b3bd0 (diff) | |
download | gcc-31708dc6447f26d71c005f440c83de0a0bc590ef.zip gcc-31708dc6447f26d71c005f440c83de0a0bc590ef.tar.gz gcc-31708dc6447f26d71c005f440c83de0a0bc590ef.tar.bz2 |
gfortran.h (gfc_symbol): Add a new "forall_index" bit field.
* gfortran.h (gfc_symbol): Add a new "forall_index" bit field.
* match.c (match_forall_iterator): Set forall_index field on
the iteration variable's symbol.
* dependency.c (contains_forall_index_p): New function to
traverse a gfc_expr to check whether it contains a variable
with forall_index set in it's symbol.
(gfc_check_element_vs_element): Return GFC_DEP_EQUAL for scalar
constant expressions that don't variables used as FORALL indices.
* gfortran.dg/dependency_9.f90: New (resurected) test case.
From-SVN: r112373
Diffstat (limited to 'gcc/fortran/gfortran.h')
-rw-r--r-- | gcc/fortran/gfortran.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/fortran/gfortran.h b/gcc/fortran/gfortran.h index 3e673a8..a7b84b1 100644 --- a/gcc/fortran/gfortran.h +++ b/gcc/fortran/gfortran.h @@ -852,6 +852,8 @@ typedef struct gfc_symbol /* Nonzero if all equivalences associated with this symbol have been processed. */ unsigned equiv_built:1; + /* Set if this variable is used as an index name in a FORALL. */ + unsigned forall_index:1; int refs; struct gfc_namespace *ns; /* namespace containing this symbol */ |