This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13343] New: [tree-ssa] self-pointing pointers are sometimes miscompiled
- From: "jim at phython dot shacknet dot nu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Dec 2003 18:37:29 -0000
- Subject: [Bug optimization/13343] New: [tree-ssa] self-pointing pointers are sometimes miscompiled
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
In the attached testcase v3 points to itself and is then assigned the value 123.
However, foo gets inlined at the rtl level in O1 or at the tree level in O2 and
causes the return value to be 20, on my machine, instead of 123 as is expected and
is returned on gcc 3.3 with and without optimizations.
--
Summary: [tree-ssa] self-pointing pointers are sometimes
miscompiled
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jim at phython dot shacknet dot nu
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-unknown-linux-gnu
GCC host triplet: sparc-unknown-linux-gnu
GCC target triplet: sparc-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13343