Re: Help with building MEM_REF node

2016-02-18 Thread Richard Biener
On Wed, Feb 17, 2016 at 5:27 PM, Cristina Georgiana Opriceana wrote: > Hello, > > I inserted a new local var decl in gimple, a pointer which is > malloc'ed and now I am trying to read/write in that memory. > > int *mumu; > mumu = malloc ( 40 * sizeof (int)); > mumu[1] = 10; > > The following state

Help with building MEM_REF node

2016-02-17 Thread Cristina Georgiana Opriceana
Hello, I inserted a new local var decl in gimple, a pointer which is malloc'ed and now I am trying to read/write in that memory. int *mumu; mumu = malloc ( 40 * sizeof (int)); mumu[1] = 10; The following statement: mumu[1] = 10; which should look like this MEM[(int *)mumu_10 + 4B] = 10; for me,