public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/38756] New: 107t.ivopts introduces pointer truncation
@ 2009-01-07 17:37 dj at redhat dot com
0 siblings, 0 replies; only message in thread
From: dj at redhat dot com @ 2009-01-07 17:37 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-07 17:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-07 17:37 [Bug middle-end/38756] New: 107t.ivopts introduces pointer truncation dj at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).