From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21755 invoked by alias); 19 Jan 2004 05:05:40 -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 21744 invoked by uid 48); 19 Jan 2004 05:05:37 -0000 Date: Mon, 19 Jan 2004 05:05:00 -0000 Message-ID: <20040119050537.21741.qmail@sources.redhat.com> From: "bernie at develer dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20031205063124.13312.Steve@Zook.com> References: <20031205063124.13312.Steve@Zook.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/13312] [m68k] C++ produces stack frame damaging code for Coldfire X-Bugzilla-Reason: CC X-SW-Source: 2004-01/txt/msg02171.txt.bz2 List-Id: ------- Additional Comments From bernie at develer dot com 2004-01-19 05:05 ------- I've tried to reproduce this problem with: - GCC 3.4 (20040114) + Andreas cc0 patch - GCC 3.3.3 (20031222) + my ColdFire/uClinux patch set In both cases, the generated code seems to be correct, assuming I'm looking at the same variable: GCC 3.4: move.w %d0,-2(%a6) [...] clr.l %d0 move.w -2(%a6),%d0 add.l %d0,88(%a5) move.w 94(%a5),%d0 GCC 3.3.3: move.w %d0,-6(%a6) [...] clr.l %d0 move.w -6(%a6),%d0 add.l %d0,88(%a4) move.w 94(%a4),%d0 Please test with the latest 3_3-branch snapshot. If you still see the problem, try applying all these patches in the given order: http://www.develer.com/uclinux/uclinux-tools-20031230/gcc-3.3.2-coldfire-targets.patch http://www.develer.com/uclinux/uclinux-tools-20031230/gcc-3.3.2-coldfire-frame.patch http://www.develer.com/uclinux/uclinux-tools-20031230/gcc-3.3.2-uclinux-idshlib.patch http://www.develer.com/uclinux/uclinux-tools-20031230/gcc-3.3.2-uclinux-thunk.patch http://www.develer.com/uclinux/uclinux-tools-20031230/gcc-3.3.2-uclinux-specs.patch http://www.develer.com/uclinux/uclinux-tools-20031230/gcc-3.3.2-coldfire-omitfrmptr.patch The uClinux patches are not relevant to you, but you need them in order to apply dependent ColdFire patches. If any of these patches fixes the problem for you, I'll prepare a standalone version that applies to 3_3-branch and submit it for this PR. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13312