2015-09-17 Paul Thomas <pault@gcc.gnu.org>
commit32c2c7e7511f862990dc12a733df1f85ba738e1e
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Sep 2015 09:09:34 +0000 (17 09:09 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Sep 2015 09:09:34 +0000 (17 09:09 +0000)
treea7c286c611bf842796a367c55951cec6af9a1761
parent452511fe89b8cb0201586c1fe50ceb83682ca558
2015-09-17  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/52846
PR fortran/67588
* module.c : Add static no_module_procedures.
(gfc_match_submodule): Correct memory leakage caused during the
freeing of use_lists.
(mio_symbol_attribute): Reset above if module procedure is
encountered.
(gfc_dump_module): Set above and exit without writing smod file
if it reset.
* gfortran.texi : Add section on submodule support.

2015-09-17  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/52846
* gfortran.dg/public_private_module_5.f90: Add module procedure
trigger_smod to ensure that the smod file is written.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227855 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/gfortran.texi
gcc/fortran/module.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/submodule_5.f08