[Bug target/13312] [m68k] C++ produces stack frame damaging code for Coldfire

bernie at develer dot com gcc-bugzilla@gcc.gnu.org
Mon Jan 19 05:05:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list