re PR fortran/18518 (equivalenced variables are not saved)
authorJakub Jelinek <jakub@redhat.com>
Tue, 27 Sep 2005 21:46:14 +0000 (23:46 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 27 Sep 2005 21:46:14 +0000 (23:46 +0200)
commit57f0d086d592e6c9bb44c330939b9dda63d24934
treec3973b2ad4259e5ebeaafcea074d679fc6155edd
parent93954fcc895e40418cecc5c0c1d35ef579ea204d
re PR fortran/18518 (equivalenced variables are not saved)

PR fortran/18518
* trans-common.c (build_equiv_decl): Add IS_SAVED argument.
If it is true, set TREE_STATIC on the decl.
(create_common): If any symbol in equivalence has SAVE attribute,
pass true as last argument to build_equiv_decl.

* gfortran.fortran-torture/execute/save_2.f90: New decl.

From-SVN: r104712
gcc/fortran/ChangeLog
gcc/fortran/trans-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.fortran-torture/execute/save_2.f90 [new file with mode: 0644]