This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/38756] New: 107t.ivopts introduces pointer truncation
- From: "dj at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jan 2009 17:37:30 -0000
- Subject: [Bug middle-end/38756] New: 107t.ivopts introduces pointer truncation
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When building gcc.c-torture/execute/20000412-6.c with -mcpu=m32c (pointers are
24 bits), ivopts introduces a truncation to "unsigned short" (sizetype, which
is 16 bits) - truncating needed bits off the pointer. 107t.ivopts shows this:
tmp_9 = tmp_16 + 2;
D.1229_1 = (unsigned int) tmp_9;
tmp_13 = (short unsigned int *) D.1229_1;
if (bufend_6(D) > tmp_13)
which ends up being a PSI -> HI -> PSI conversion (PSI-SI-HI-SI-PSI in
128r.expand)
--
Summary: 107t.ivopts introduces pointer truncation
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dj at redhat dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: m32c-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38756