From d65169f5ca25b09f63fb3414704315848f46ef48 Mon Sep 17 00:00:00 2001 From: mikael Date: Wed, 6 Oct 2010 15:35:04 +0000 Subject: [PATCH] 2010-10-06 Mikael Morin * symbol.c (gfc_copy_formal_args_ppc): Free previous formal arg list before overwriting it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165040 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/fortran/ChangeLog | 5 +++++ gcc/fortran/symbol.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 63a818c..7d2f798 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,5 +1,10 @@ 2010-10-06 Mikael Morin + * symbol.c (gfc_copy_formal_args_ppc): Free previous formal arg list + before overwriting it. + +2010-10-06 Mikael Morin + * array.c (gfc_match_array_spec): Don't re-initialize cleared struct. * symbol.c (gen_shape_param): Ditto. diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c index 93199cf..9dd75490 100644 --- a/gcc/fortran/symbol.c +++ b/gcc/fortran/symbol.c @@ -4203,6 +4203,7 @@ gfc_copy_formal_args_ppc (gfc_component *dest, gfc_symbol *src) } /* Add the interface to the symbol. */ + gfc_free_formal_arglist (dest->formal); dest->formal = head; dest->attr.if_source = IFSRC_DECL; -- 2.7.4