[Bug tree-optimization/36385] Assume that long is scalar size of a pointer

ktietz at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Aug 31 19:29:00 GMT 2009



------- Comment #6 from ktietz at gcc dot gnu dot org  2009-08-31 19:29 -------
Created an attachment (id=18457)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18457&action=view)
Remove cast warnings for target with sizeof (void *)>sizeof(long)

If define __INTPTR_TYPE__ is present, this patch uses it to cast from pointer
to long, and from long to pointer.

Tested for i686-pc-mingw32 and for x86_64-pc-mingw32.

Ok, for apply?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36385



More information about the Gcc-bugs mailing list