On 19. 01. 2012 16:50, Butuza Tamas wrote: > Dear SDCC developers, > > I found a bug when I tried to compile a code for pic16F1938. (14 bit enhanced > core) > > The problem is: The optimizer breaks the code. Makes part of the code > unreachable. > Error message is: > test.c:51: warning 110: conditional flow changed by optimizer: so said EVELYN > the modified DOG > test.c:52: warning 126: unreachable code > > The compiler has problem with this line in the interrupt routine: "if > ((irx1tmp& 0x01) != 0) {" > Compiler thinks, the condition is always false, but it is not true.
You shoud tell him that irx1tmp is volatile. Borut ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user