diff options
author | Tobias Burnus <burnus@net-b.de> | 2012-08-21 23:01:36 +0200 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2012-08-21 23:01:36 +0200 |
commit | 61917ebc9631968e7a7b65bb475221f812237df1 (patch) | |
tree | 0e0cae505fafa423150d2961eaf8af9e288306bc /gcc | |
parent | 4b1b378895294425e2352f8e1730a74942fb067c (diff) | |
download | gcc-61917ebc9631968e7a7b65bb475221f812237df1.zip gcc-61917ebc9631968e7a7b65bb475221f812237df1.tar.gz gcc-61917ebc9631968e7a7b65bb475221f812237df1.tar.bz2 |
parse.c (parse_contained): Include EXEC_END_PROCEDURE in ns->code to make sure the gfc_code is freed.
2012-08-21 Tobias Burnus <burnus@net-b.de>
* parse.c (parse_contained): Include EXEC_END_PROCEDURE
in ns->code to make sure the gfc_code is freed.
From-SVN: r190575
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fortran/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fortran/parse.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 4992ecf..c4dad21 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2012-08-21 Tobias Burnus <burnus@net-b.de> + + * parse.c (parse_contained): Include EXEC_END_PROCEDURE + in ns->code to make sure the gfc_code is freed. + 2012-08-20 Tobias Burnus <burnus@net-b.de> PR fortran/54301 diff --git a/gcc/fortran/parse.c b/gcc/fortran/parse.c index 44b1900..c0ec6e4 100644 --- a/gcc/fortran/parse.c +++ b/gcc/fortran/parse.c @@ -4075,6 +4075,7 @@ parse_contained (int module) case ST_END_PROGRAM: case ST_END_SUBROUTINE: accept_statement (st); + gfc_current_ns->code = s1.head; break; default: |