projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* src/pic/device.h: removed AssignedMemory structure and macros
[fw/sdcc]
/
src
/
pic
/
pcode.c
diff --git
a/src/pic/pcode.c
b/src/pic/pcode.c
index 100a5f76f036b310cd3081ec8bbd5c17efb9f2f1..45aef3532bd98e9d06ebf501e3827f8c856e2fa9 100644
(file)
--- a/
src/pic/pcode.c
+++ b/
src/pic/pcode.c
@@
-5272,6
+5272,11
@@
static unsigned register_reassign(pBlock *pb, unsigned idx)
pc = setFirstItem(pb->function_entries);
if(!pc)
return 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;
pb->visited = 1;