[patch] Fix PR43065: Insert bounds on pointer type parameters
Sebastian Pop
sebpop@gmail.com
Fri Mar 5 23:47:00 GMT 2010
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?
Thanks,
Sebastian Pop
--
AMD / Open Source Compiler Engineering / GNU Tools
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-PR43065-Insert-bounds-on-pointer-type-parameters.patch
Type: text/x-diff
Size: 2802 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100305/e78f9008/attachment.bin>
More information about the Gcc-patches
mailing list