Re: [Sdcc-user] local bit variable in remote function or main not assigned.

2009-10-13 Thread Maarten Brock
Hi Kurt, It looks like you found a bug. The reason it only complains about the flag in main is because it's optimized away in test. Somehow SDCC forgets to allocate the space for the local bit variable. If you make it static or volatile it does get an address. And as you found out also when i

[Sdcc-user] local bit variable in remote function or main not assigned.

2009-10-13 Thread kurt . m . sanger
I'm running sdcc V2.9.2 on Windows XP from build sdcc-20090817-5492-setup.exe. When I define a bit variable in a function, compile functions separately, then link together I get a linker warning that the global variable referenced by the module is undefined. ?ASlink-Warning-Undefined Global '_