This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/54951] Incorrect pointer handling on 32K boundary
- From: "dj at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Oct 2012 02:14:48 +0000
- Subject: [Bug target/54951] Incorrect pointer handling on 32K boundary
- Auto-submitted: auto-generated
- References: <bug-54951-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54951
DJ Delorie <dj at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dj at redhat dot com
--- Comment #1 from DJ Delorie <dj at redhat dot com> 2012-10-18 02:14:48 UTC ---
This is, unfortunately, the expected behavior for m32c. The m32c has 20-bit
pointers but 16-bit math operations, so size_t is 16 bits resulting in many
pointer math operations being truncated to 16 bits. So, a COUNT of 0xFFFF may
be interpreted as -1 instead of 65536, etc.