This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/13122] h8300 - local variable gets corrupted by function call when -fomit-frame-pointer is given


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]