This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Memory leak in ifcvt.c


On Mon, Jun 30, 2008 at 9:33 PM, Kenneth Zadeck
<zadeck@naturalbridge.com> wrote:
> Updated as richard has requested.
>
> 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
>
>   * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New
>   macros.
>          (df_scan_free_internal): Free data structures not
>   allocated in storage pools.
>   (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
>   (df_refs_add_to_chains): Use df_scan_free_ref_vec and
>   df_scan_free_mws_vec.
>   * dse.c (dse_step6): Free offset_map_p and offset_map_n
>   unconditionally.
>
> 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
>
>   * ifcvt.c (cond_move_process_if_block): Free vectors on false
>   return.
>
> Committed as revisions 137284 and 137285.

Thanks.  This seems to have a very positive effect on some testcases,
can you back-port these fixes to the 4.3 branch if applicable?

Thanks,
Richard.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]