#1971 --oldralloc bug 2

closed-fixed
z80 port (188)
6
2012-03-14
2012-03-12
Woody
No

1. Sample code attached.
2. command used: C:\SDCC\BIN\sdcc bug3.c -mz80 -c --std-c99 --oldralloc --codeseg CODE3
3. sdcc -v: SDCC : mcs51/gbz80/z80/z180/r2k/ds390/pic16/pic14/TININative/ds400/hc08 3.1.3 #7432 (Mar 12 2012) (MINGW32)
4. In bug3.c, line 39, _sReceiveDataLen = sLen - iHeadLen; sReceiveDataLen value is generated wrong with correct sLen and iHeadLen. Command line "sdcc bug3.c -mz80 -c --std-c99 --codeseg CODE3" can generate correct result.

Discussion

  • Woody
    Woody
    2012-03-12

     
    Attachments
    • priority: 5 --> 6
     
  • Increasing priority since bad code is generated silently.

    Philipp

     
    • assigned_to: nobody --> spth
    • status: open --> closed-fixed
     
  • Fixed inr evision #7450.

    Philipp