Re: [Sdcc-user] Bug in static local variable

2011-02-21 Thread Krishnendu Chatterjee
Thanks Maarten. I have posted it as a bug in the tracker system. Krish On Mon, Feb 21, 2011 at 10:50 PM, Maarten Brock wrote: > Hi Krish, > > Instead of posting this to the other users, it is better to file this as a > bug report in the SDCC tracker system. Otherwise it runs a great risk of > be

Re: [Sdcc-user] Bug in static local variable

2011-02-21 Thread Maarten Brock
Hi Krish, Instead of posting this to the other users, it is better to file this as a bug report in the SDCC tracker system. Otherwise it runs a great risk of being lost and forgotten. Greets, Maarten Brock > Dear All, > > Consider the following code: > > -

[Sdcc-user] Bug in static local variable

2011-02-21 Thread Krishnendu Chatterjee
Dear All, Consider the following code: - struct S1 { char a, b, c; }; typedef void (*foo_t)(void *arg); struct S2 { __xdata void *p; foo_t f1, f2, f3; }; void foo1 (void *arg) {arg;} void foo2 (void *arg) {arg;} void foo3 (void *arg) {ar