From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7019 invoked by alias); 7 Dec 2003 18:37:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 6996 invoked by uid 48); 7 Dec 2003 18:37:29 -0000 Date: Sun, 07 Dec 2003 18:37:00 -0000 From: "jim at phython dot shacknet dot nu" To: gcc-bugs@gcc.gnu.org Message-ID: <20031207183728.13343.jim@phython.shacknet.nu> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug optimization/13343] New: [tree-ssa] self-pointing pointers are sometimes miscompiled X-Bugzilla-Reason: CC X-SW-Source: 2003-12/txt/msg00857.txt.bz2 List-Id: 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