[Bug optimization/11837] New: Stack frame gets corrupted
mail at andreas-s dot net
gcc-bugzilla@gcc.gnu.org
Wed Aug 6 18:39:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11837
Summary: Stack frame gets corrupted
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mail at andreas-s dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: avr
The following program runs fine when compiled with -O1 or -O2, but with
-Os the function iRealFT() corrupts the stack frame (R29):
http://andreas-s.net/gccbug.tar.gz
Contains (preprocessed) sources, Makefile and elf objects which reproduce the
problem. You can see in the simulator (tried it with simulavr and AVR-Studio 3)
that the return from iRealFT() doesn't work. Sorry that I couldn't provide an
inline example.
gcc 3.3.1 20030720
binutils 2.14 20030727
(PS: why is the Os-compiled binary larger than the O2 and O1 ones?
More information about the Gcc-bugs
mailing list