Re: [PATCH] Fix ipa-pure-const memory leak (PR middle-end/56461)

2013-02-27 Thread Richard Biener
On 2/27/13 5:03 PM, Jakub Jelinek wrote: > Hi! > > The release_node hook is only called when a cgraph node is removed, not > when it merely gets ->analyzed field cleared. If that happens on > some node that has_function_state, we leak the memory. > > Fixed thusly, bootstrapped/regtested on x86_6

[PATCH] Fix ipa-pure-const memory leak (PR middle-end/56461)

2013-02-27 Thread Jakub Jelinek
Hi! The release_node hook is only called when a cgraph node is removed, not when it merely gets ->analyzed field cleared. If that happens on some node that has_function_state, we leak the memory. Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2013-02-27 Jaku