diff options
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/elf32-spu.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e45d912..8d20b81 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2009-01-13 Alan Modra <amodra@bigpond.net.au> + + * elf32-spu.c (remove_cycles): Always set call->max_depth. + 2009-01-12 Alan Modra <amodra@bigpond.net.au> * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask. diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 2d2f258..e94c70b 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -3140,9 +3140,9 @@ remove_cycles (struct function_info *fun, callp = &fun->call_list; while ((call = *callp) != NULL) { + call->max_depth = depth + !call->is_pasted; if (!call->fun->visit2) { - call->max_depth = depth + !call->is_pasted; if (!remove_cycles (call->fun, info, &call->max_depth)) return FALSE; if (max_depth < call->max_depth) |