From: Alan Modra Date: Mon, 12 Jan 2009 13:56:03 +0000 (+0000) Subject: * elf32-spu.c (remove_cycles): Always set call->max_depth. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25076afa95c43fb6856f4bf42d5aae7dc5549d6a;p=binutils-gdb.git * elf32-spu.c (remove_cycles): Always set call->max_depth. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e45d9124eda..8d20b8137d2 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2009-01-13 Alan Modra + + * elf32-spu.c (remove_cycles): Always set call->max_depth. + 2009-01-12 Alan Modra * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask. diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 2d2f2583d4e..e94c70b9b5f 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)