[Bug target/13122] h8300 - local variable gets corrupted by function call when -fomit-frame-pointer is given
kazu at cs dot umass dot edu
gcc-bugzilla@gcc.gnu.org
Sat Nov 22 17:26:00 GMT 2003
------- Additional Comments From kazu at cs dot umass dot edu 2003-11-22 17:26 -------
Probably the following better describes the problem.
You get a positive (correct) offset for "a = 10;"
and a negative one for "return a;".
So I doubt the problem is related to INITIAL_ELIMINATION_OFFSET.
void foo (int, int, int, int);
short
bar (void)
{
short a = 10;
foo (0, 0, 0, 0);
return a;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13122
More information about the Gcc-bugs
mailing list