Re: Question about pointer arithmetics in GIMPLE

2005-08-22 Thread Daniel Berlin
> Warning for pointer generation is going to be a *lot* harder and I > suspect will always result in more false positives. In order to increase the accuracy of the data dependence analysis, i do, at some point, plan on tracking the sizes of malloc sites, and giving an upper bound on them (for cas

Re: Question about pointer arithmetics in GIMPLE

2005-08-22 Thread Jeffrey A Law
On Sun, 2005-08-21 at 20:32 +0200, Falk Hueffner wrote: > Hi, > > I'm trying to implement a tree pass that warns about bad array > accesses as suggested for PR 8268 by Jeff Law. However, I have trouble > with the following: > > char digit_vector[5]; > const char *ggc_alloc_string(int length) { >

Question about pointer arithmetics in GIMPLE

2005-08-21 Thread Falk Hueffner
Hi, I'm trying to implement a tree pass that warns about bad array accesses as suggested for PR 8268 by Jeff Law. However, I have trouble with the following: char digit_vector[5]; const char *ggc_alloc_string(int length) { return digit_vector + ((length - 17) * 2); } this translates to: ggc