This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/54951] Incorrect pointer handling on 32K boundary


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]