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.