This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/13122] h8300 - local variable gets corrupted by function call when -fomit-frame-pointer is given
- From: "kazu at cs dot umass dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Nov 2003 17:26:57 -0000
- Subject: [Bug target/13122] h8300 - local variable gets corrupted by function call when -fomit-frame-pointer is given
- References: <20031119104448.13122.dhananjayd@kpitcummins.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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