* src/pic/device.h: removed AssignedMemory structure and macros
[fw/sdcc] / src / pic / pcode.c
index 100a5f76f036b310cd3081ec8bbd5c17efb9f2f1..45aef3532bd98e9d06ebf501e3827f8c856e2fa9 100644 (file)
@@ -5272,6 +5272,11 @@ static unsigned register_reassign(pBlock *pb, unsigned idx)
        pc = setFirstItem(pb->function_entries);
        if(!pc)
                return idx;
+
+       if (pb->visited) {
+           /* TODO: Recursion detection missing, should emit a warning as recursive code will fail. */
+           return idx;
+       }
        
        pb->visited = 1;