re PR fortran/35037 (VOLATILE attribute not being honored with common block variable)
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Tue, 5 Feb 2008 21:06:32 +0000 (21:06 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Tue, 5 Feb 2008 21:06:32 +0000 (21:06 +0000)
commite3ac9b24a77b39ecd1e954c4d34957ee9e4ac1c0
tree3270a822480b22cb5e3633ff14ad2ae61bed170c
parentda36ba2754d0ab1b9ac9603c939e8b83f1857a30
re PR fortran/35037 (VOLATILE attribute not being honored with common block variable)

PR fortran/35037

* trans-common.c (build_field): Mark fields as volatile when needed.

* gfortran.dg/volatile11.f90: New test.

From-SVN: r132129
gcc/fortran/ChangeLog
gcc/fortran/trans-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/volatile11.f90 [new file with mode: 0644]