[PATCH] Fix IRA memory leak (PR middle-end/56461)
Fri Mar 1 22:48:00 GMT 2013
On 03/01/2013 01:21 PM, Jakub Jelinek wrote:
> When ira_destroy is called, often (always?) this is after
> loop_optimize_finalize call and thus current_loops is NULL, which results in
> only freeing ira_loop_nodes and not ira_loop_nodes and above (if any).
> Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
> 2013-03-01 Jakub Jelinek <email@example.com>
> PR middle-end/56461
> * ira-build.c (ira_loop_nodes_count): New variable.
> (create_loop_tree_nodes): Initialize it.
> (finish_loop_tree_nodes): Use it instead of looking at current_loops.
More information about the Gcc-patches