This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix PR43065: Insert bounds on pointer type parameters
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Sebastian Pop <sebpop at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, gcc-graphite <gcc-graphite at googlegroups dot com>, "Yazdani, Reza" <reza dot yazdani at amd dot com>, Richard Guenther <rguenther at suse dot de>
- Date: Fri, 5 Mar 2010 15:47:47 -0800
- Subject: Re: [patch] Fix PR43065: Insert bounds on pointer type parameters
- References: <cb9d34b21003051545p6bcb86feq30a88cff87557c96@mail.gmail.com>
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