Re: [PATCH] Fix PR47127: call cloog_state_malloc and cloog_state_free only once.

2011-03-14 Thread Jakub Jelinek
On Fri, Mar 11, 2011 at 03:38:49PM -0600, Sebastian Pop wrote: > we currently call cloog_state_malloc and cloog_state_free too many > times. In CLooG-Parma, these functions contain the init and fini > functions of PPL, and so calling these in the middle of graphite would > finalize all the PPL dat

Re: [PATCH] Fix PR47127: call cloog_state_malloc and cloog_state_free only once.

2011-03-11 Thread Richard Guenther
On Fri, Mar 11, 2011 at 10:38 PM, Sebastian Pop wrote: > Hi, > > we currently call cloog_state_malloc and cloog_state_free too many > times.  In CLooG-Parma, these functions contain the init and fini > functions of PPL, and so calling these in the middle of graphite would > finalize all the PPL da

[PATCH] Fix PR47127: call cloog_state_malloc and cloog_state_free only once.

2011-03-11 Thread Sebastian Pop
Hi, we currently call cloog_state_malloc and cloog_state_free too many times. In CLooG-Parma, these functions contain the init and fini functions of PPL, and so calling these in the middle of graphite would finalize all the PPL data structures, leading to memory corruption. This patch fixes this