aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-spu.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-01-12 13:56:03 +0000
committerAlan Modra <amodra@gmail.com>2009-01-12 13:56:03 +0000
commit25076afa95c43fb6856f4bf42d5aae7dc5549d6a (patch)
tree7c8c5b1934d5144d7f7218efd288d45c9eb83d2d /bfd/elf32-spu.c
parent2ea2f3c64205853bd5beb90dd21b319d40adc24d (diff)
downloadgdb-25076afa95c43fb6856f4bf42d5aae7dc5549d6a.zip
gdb-25076afa95c43fb6856f4bf42d5aae7dc5549d6a.tar.gz
gdb-25076afa95c43fb6856f4bf42d5aae7dc5549d6a.tar.bz2
* elf32-spu.c (remove_cycles): Always set call->max_depth.
Diffstat (limited to 'bfd/elf32-spu.c')
-rw-r--r--bfd/elf32-spu.c2
1 files changed, 1 insertions, 1 deletions
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)