summaryrefslogtreecommitdiff
path: root/bfd/elf32-spu.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2009-01-12 13:56:03 +0000
committerAlan Modra <amodra@bigpond.net.au>2009-01-12 13:56:03 +0000
commitceb237b09509e8f537de9c4e6c4705fd16b5239f (patch)
tree24abebcd6ffef9665f2d5afbdb49781eaafd6321 /bfd/elf32-spu.c
parent6e4eac77fbe2215512d7427065c480e2fce13e86 (diff)
downloadbinutils-redhat-ceb237b09509e8f537de9c4e6c4705fd16b5239f.tar.gz
* 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 2d2f2583d4..e94c70b9b5 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)