diff options
-rw-r--r-- | gcc/ChangeLog.dataflow | 4 | ||||
-rw-r--r-- | gcc/config/sh/sh.c | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ChangeLog.dataflow b/gcc/ChangeLog.dataflow index ea3b83eba28..bf5f211bef5 100644 --- a/gcc/ChangeLog.dataflow +++ b/gcc/ChangeLog.dataflow @@ -1,3 +1,7 @@ +2005-11-28 Paolo Bonzini <bonzini@gnu.org> + + * config/sh/sh.c (sh_output_mi_thunk): Use df_finish. + 2005-11-17 Paolo Bonzini <bonzini@gnu.org> * df.h (struct df_reach): Add size field. diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 1bcf81d8bdc..3254ba0bece 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -47,6 +47,7 @@ Boston, MA 02110-1301, USA. */ #include "real.h" #include "langhooks.h" #include "basic-block.h" +#include "df.h" #include "cfglayout.h" #include "intl.h" #include "sched-int.h" @@ -9826,8 +9827,12 @@ sh_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED, if (optimize > 0) { - /* Release all memory allocated by flow. */ - free_basic_block_vars (); + /* Release all memory allocated by df. */ + if (rtl_df) + { + df_finish (rtl_df); + rtl_df = NULL; + } /* Release the bitmap obstacks. */ bitmap_obstack_release (®_obstack); |