------- Comment #4 from dj at redhat dot com  2007-10-31 18:03 -------
Subject: Re:  iv folding fails with pointer iterations


Oops, sorry, I have a local patch.  Apparently I'm trying to support
pointer math the same size as pointers (pointers are 24 bits) as an
option for the future, which lowers the priority for this bug, but I'd
appreciate it if it worked anyway - I'm getting requests for this
functionality.  By default, pointers are 24 bits but size_t is only
16, which causes wrong-code in some cases.

Index: config/m32c/m32c.h
===================================================================
--- config/m32c/m32c.h  (revision 129762)
+++ config/m32c/m32c.h  (working copy)
@@ -170,12 +170,15 @@ machine_function;

 #define DEFAULT_SIGNED_CHAR 1

 #undef PTRDIFF_TYPE
 #define PTRDIFF_TYPE (TARGET_A16 ? "int" : "long int")

+#undef SIZE_TYPE
+#define SIZE_TYPE (TARGET_A16 ? "unsigned int" : "long unsigned int")
+
 /* REGISTER USAGE */

 /* Register Basics */

 /* Register layout:



-- 


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

Reply via email to