Re: Referenced Vars in IPA pass

2007-03-13 Thread Paulo J. Matos
On 3/13/07, Richard Guenther <[EMAIL PROTECTED]> wrote: On 3/13/07, Daniel Berlin <[EMAIL PROTECTED]> wrote: > On 3/13/07, Paulo J. Matos <[EMAIL PROTECTED]> wrote: > > On 3/13/07, Daniel Berlin <[EMAIL PROTECTED]> wrote: > > > Uh, since when did 4.1 support IPA GIMPLE? > > > > > > > > > > What d

Re: Referenced Vars in IPA pass

2007-03-13 Thread Richard Guenther
On 3/13/07, Daniel Berlin <[EMAIL PROTECTED]> wrote: On 3/13/07, Paulo J. Matos <[EMAIL PROTECTED]> wrote: > On 3/13/07, Daniel Berlin <[EMAIL PROTECTED]> wrote: > > Uh, since when did 4.1 support IPA GIMPLE? > > > > > > What do you mean by that? I'm pretty sure there were a number of cgraph and

Re: Referenced Vars in IPA pass

2007-03-13 Thread Daniel Berlin
On 3/13/07, Paulo J. Matos <[EMAIL PROTECTED]> wrote: On 3/13/07, Daniel Berlin <[EMAIL PROTECTED]> wrote: > Uh, since when did 4.1 support IPA GIMPLE? > > What do you mean by that? I'm pretty sure there were a number of cgraph and other related changes necessary to make IPA work completely th

Re: Referenced Vars in IPA pass

2007-03-13 Thread Paulo J. Matos
On 3/13/07, Daniel Berlin <[EMAIL PROTECTED]> wrote: Uh, since when did 4.1 support IPA GIMPLE? What do you mean by that? -- Paulo Jorge Matos - pocm at soton.ac.uk http://www.personal.soton.ac.uk/pocm PhD Student @ ECS University of Southampton, UK

Re: Referenced Vars in IPA pass

2007-03-13 Thread Daniel Berlin
Uh, since when did 4.1 support IPA GIMPLE? On 3/13/07, Paulo J. Matos <[EMAIL PROTECTED]> wrote: On 3/13/07, Paolo Bonzini <[EMAIL PROTECTED]> wrote: > > > int x; > > { > > int y; > > { > > int z; > > ... > > } > > ... > > } > > > > just ha

Re: Referenced Vars in IPA pass

2007-03-13 Thread Paulo J. Matos
On 3/13/07, Jeffrey Law <[EMAIL PROTECTED]> wrote: On Tue, 2007-03-13 at 18:09 +0100, Paolo Bonzini wrote: > > int x; > > { > > int y; > > { > > int z; > > ... > > } > > ... > > } > > > > just happens to have three statements, all VAR_DECL,x,

Re: Referenced Vars in IPA pass

2007-03-13 Thread Jeffrey Law
On Tue, 2007-03-13 at 18:09 +0100, Paolo Bonzini wrote: > > int x; > > { > > int y; > > { > > int z; > > ... > > } > > ... > > } > > > > just happens to have three statements, all VAR_DECL,x, y, z, without > > any reference to the starting and

Re: Referenced Vars in IPA pass

2007-03-13 Thread Paulo J. Matos
On 3/13/07, Paolo Bonzini <[EMAIL PROTECTED]> wrote: > int x; > { > int y; > { > int z; > ... > } > ... > } > > just happens to have three statements, all VAR_DECL,x, y, z, without > any reference to the starting and ending blocks. As a side

Re: Referenced Vars in IPA pass

2007-03-13 Thread Paulo J. Matos
On 3/13/07, Paolo Bonzini <[EMAIL PROTECTED]> wrote: > int x; > { > int y; > { > int z; > ... > } > ... > } > > just happens to have three statements, all VAR_DECL,x, y, z, without > any reference to the starting and ending blocks. As a side

Re: Referenced Vars in IPA pass

2007-03-13 Thread Paolo Bonzini
> int x; > { > int y; > { > int z; > ... > } > ... > } > > just happens to have three statements, all VAR_DECL,x, y, z, without > any reference to the starting and ending blocks. As a side question, > how can I get hand of where the blocks st

Referenced Vars in IPA pass

2007-03-13 Thread Paulo J. Matos
Hi all, In #gcc, it was suggested to use referenced vars to get all the referenced vars for a function. I added to my IPA pass props, PROP_referenced_vars , used push_cfun and then FOR_EACH_REFERENCED_VAR, however, it just segfaults in tree-flow-inline.h:34 : hti->slot = table->entries; It was s