This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/33915] iv folding fails with pointer iterations
- From: "dj at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2007 18:03:23 -0000
- Subject: [Bug tree-optimization/33915] iv folding fails with pointer iterations
- References: <bug-33915-681@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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