From 6c13c5f2ac8e8180c45d06e7d4ddd529f61a79b1 Mon Sep 17 00:00:00 2001 From: Janne Blomqvist Date: Tue, 19 Apr 2011 20:57:05 +0300 Subject: [PATCH] Use XDELETEVEC instead of free From-SVN: r172729 --- gcc/fortran/ChangeLog | 5 +++++ gcc/fortran/frontend-passes.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index c6d92959eea..b4dabb46ac8 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2011-04-19 Janne Blomqvist + + * frontend-passes.c (gfc_run_passes): Use XDELETEVEC instead of + free. + 2011-04-19 Janne Blomqvist * misc.c (gfc_getmem): Remove function. diff --git a/gcc/fortran/frontend-passes.c b/gcc/fortran/frontend-passes.c index 9d1cc3aac14..d70435dc384 100644 --- a/gcc/fortran/frontend-passes.c +++ b/gcc/fortran/frontend-passes.c @@ -71,9 +71,7 @@ gfc_run_passes (gfc_namespace *ns) if (gfc_option.dump_fortran_optimized) gfc_dump_parse_tree (ns, stdout); - /* FIXME: The following should be XDELETEVEC(expr_array); - but we cannot do that because it depends on free. */ - free (expr_array); + XDELETEVEC (expr_array); } } -- 2.30.2