1. Sample code attached.
2. Command line used: C:\SDCC\BIN\sdcc dsp_bank1.c -mz80 -c --oldralloc --std-c99 --codeseg CODE1
3. SDCC version tested: SDCC : mcs51/gbz80/z80/ds390/pic16/pic14/TININative/ds400/hc08 3.0.4 #6848 (Sep
10 2011) (MINGW32)
4. The code was compiled correct with build 6720 (as in attached dsp_bank1_6720.asm). It was correct no matter --oldalloc was used or not. And it goes wrong with build 6848 no matter --oldalloc is used or not. The bug is in sdcc.exe, put 6720 sdcc.exe into 6848 build will work correctly. By the way, the same function was compiled wrong with an earlier fixed bug report related with --max-allocs-per-node option.
Log in to post a comment.