[patch] Fix PR43065: Insert bounds on pointer type parameters
Andrew Pinski
pinskia@gmail.com
Fri Mar 5 23:52:00 GMT 2010
On Fri, Mar 5, 2010 at 3:45 PM, Sebastian Pop <sebpop@gmail.com> wrote:
> Hi,
>
> to solve http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43065 we
> have to insert in the context of the scop the minimal value of a
> pointer type parameter. I used for this the min and max values
> of the unsigned type, like this:
>
> + else if (POINTER_TYPE_P (type))
> + {
> + lb = TYPE_MIN_VALUE (unsigned_type_node);
> + ub = TYPE_MAX_VALUE (unsigned_type_node);
> + }
>
> Richi, does this look good to you?
unsigned_type_node is most likely incorrect. You most likely want
sizetype instead.
Thanks,
Andrew Pinski
More information about the Gcc-patches
mailing list