]> git.ipfire.org Git - people/ms/gcc.git/commit
Fortran: ASSOCIATE variables should not be TREE_STATIC [PR95107]
authorHarald Anlauf <anlauf@gmx.de>
Mon, 6 Feb 2023 19:59:51 +0000 (20:59 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 10 Feb 2023 19:09:47 +0000 (20:09 +0100)
commit4eba6812c5652005e0e9dc62358a6fb3bda193e6
treeaf86fa02acc68b7734113230ce48e6fd060500f5
parentf4efceac1741c03bc3c86f95e4bcd8918ec8ebe6
Fortran: ASSOCIATE variables should not be TREE_STATIC [PR95107]

gcc/fortran/ChangeLog:

PR fortran/95107
* trans-decl.c (gfc_finish_var_decl): With -fno-automatic, do not
make ASSOCIATE variables TREE_STATIC.

gcc/testsuite/ChangeLog:

PR fortran/95107
* gfortran.dg/save_7.f90: New test.

(cherry picked from commit c36f3da534e7f411c5bc48c5b6b660e238167480)
gcc/fortran/trans-decl.c
gcc/testsuite/gfortran.dg/save_7.f90 [new file with mode: 0644]