Re: [PATCH] Fix ccp (PR tree-optimization/56396)

2013-02-20 Thread Jakub Jelinek
On Wed, Feb 20, 2013 at 10:52:52AM +0100, Richard Biener wrote: > *** get_value (tree var) > *** 295,301 > { > prop_value_t *val; > > ! if (const_val == NULL) > return NULL; > > val = &const_val[SSA_NAME_VERSION (var)]; > --- 296,303 > { > prop_va

Re: [PATCH] Fix ccp (PR tree-optimization/56396)

2013-02-20 Thread Richard Biener
On Tue, 19 Feb 2013, Jakub Jelinek wrote: > Hi! > > On the following patch gcc ICEs because malloc memory is corrupted. > The problem is that const_val array is allocated at the start of the pass, > but during the execution of ccp some new SSA_NAMEs are created > (update_call_from_tree if I remem