Bugs item #613775, was opened at 2002-09-24 06:31
Message generated for change (Comment added) made by epetrich
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100599&aid=613775&group_id=599
>Category: Icode generator
>Group: fixed
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Stan Croft (scroft)
>Assigned to: Erik Petrich (epetrich)
Summary: Stack pointer lost in loop
Initial Comment:
void bug (float f)
{
long buf[50];
unsigned char i;
i=10;
do {
buf[i]=f;
} while (--i);
}
void main()
{
bug(1.414);
}
At the "while (--i)" point the stack pointer changes
downward by 4 bytes at each iteration resulting in loss of
reference to i. A smaller buf (less than 128 bytes) works.
----------------------------------------------------------------------
>Comment By: Erik Petrich (epetrich)
Date: 2003-09-16 22:25
Message:
Logged In: YES
user_id=635249
Fixed in src/SDCCopt.c 1.32
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100599&aid=613775&group_id=599
|