* src/pic/pcode.c (ReuseReg): do not overlay the registers used for
[fw/sdcc] / src / pic / pcode.c
index 270f07293efbce177ccb25d679d1238fc2a89865..659c749aaec315db541977870077515122609fa7 100644 (file)
@@ -5342,7 +5342,7 @@ static unsigned register_reassign(pBlock *pb, unsigned idx, unsigned level)
 void ReuseReg(void)
 {
        pBlock  *pb;
-       if (!the_pFile) return;
+       if (options.noOverlay || !the_pFile) return;
        InitReuseReg();
        for(pb = the_pFile->pbHead; pb; pb = pb->next) {
                /* Non static functions can be called from other modules so their registers must reassign */