Re: Problem with ADDR_EXPR array offset

2010-03-25 Thread Massimo Nazaria
Thank you very much!!! :D --- Mer 24/3/10, Ian Lance Taylor ha scritto: > Da: Ian Lance Taylor > Oggetto: Re: Problem with ADDR_EXPR array offset > A: "Massimo Nazaria" > Cc: gcc@gcc.gnu.org > Data: Mercoledì 24 marzo 2010, 23:59 > Massimo Nazaria > writes: >

Re: Problem with ADDR_EXPR array offset

2010-03-24 Thread Ian Lance Taylor
Massimo Nazaria writes: > I'm working on a pass and I need to handle some pointer expressions. > For example, I have this C-code: > int v[1000]; > int *p; > p = &v[10]; > > The problem is that, when I'm trying to parse "p = &v[10];", I'm not able to > get the array offset (10 in this cas

Problem with ADDR_EXPR array offset

2010-03-24 Thread Massimo Nazaria
Hi everybody! I'm working on a pass and I need to handle some pointer expressions. For example, I have this C-code: int v[1000]; int *p; p = &v[10]; The problem is that, when I'm trying to parse "p = &v[10];", I'm not able to get the array offset (10 in this case). Namely, for a given st