]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/45777 (Alias analysis broken for arrays where LHS or RHS is a component...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 8 Jan 2011 09:38:13 +0000 (09:38 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 8 Jan 2011 09:38:13 +0000 (09:38 +0000)
commitecb3baaa8e973e3963eee7929bfd2fc419a2a950
treebc81017a641e2c952741cf0d7f440a5956a9f883
parent72e961c86a4da21028ac032ae03d7158af69a1af
re PR fortran/45777 (Alias analysis broken for arrays where LHS or RHS is a component ref)

2011-01-08  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/45777
* symbol.c (gfc_symbols_could_alias):  Strip gfc_ prefix,
make static and move in front of its only caller, to ...
* trans-array.c (symbols_could_alias): ... here.
Pass information about pointer and target status as
arguments.  Allocatable arrays don't alias anything
unless they have the POINTER attribute.
(gfc_could_be_alias):  Keep track of pointer and target
status when following references.  Also check if typespecs
of components match those of other components or symbols.

2011-01-08  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/45777
* gfortran.dg/dependency_39.f90:  New test.

From-SVN: r168596
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/symbol.c
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dependency_39.f90 [new file with mode: 0644]