From: SourceForge.net <no...@so...> - 2003-02-02 18:09:02
|
Bugs item #585584, was opened at 2002-07-23 20:56 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=585584&group_id=599 Category: msc51(8051) target Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Erik Petrich (epetrich) Summary: Wrong stack offset: using and --stack-a Initial Comment: Reported by Chris Erickson <cer...@ea...> http://sourceforge.net/mailarchive/forum.php?thread_id=837826&forum_id=4107 char foo (char c1, char c2) using 1 reentrant { return c1+c2; } char main (void) { return foo (1, 2); } SDCC calculates a wrong stack-offset: ;c2 Allocated to stack - offset -4 -3 is the correct value. ---------------------------------------------------------------------- >Comment By: Johan Knol (johanknol) Date: 2003-02-02 18:14 Message: Logged In: YES user_id=63512 Nice. For some reason you (epetrich) didn't had permissions to close the bug, now you should have. So if you're sure, please close the bug. Johan ---------------------------------------------------------------------- Comment By: Erik Petrich (epetrich) Date: 2003-02-02 17:36 Message: Logged In: YES user_id=635249 Fixed in sdcc/src/mcs51/main.c 1.64 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=585584&group_id=599 |