[Bug optimization/13343] New: [tree-ssa] self-pointing pointers are sometimes miscompiled
jim at phython dot shacknet dot nu
gcc-bugzilla@gcc.gnu.org
Sun Dec 7 18:37:00 GMT 2003
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
More information about the Gcc-bugs
mailing list