OSDN Git Service

* elf32-spu.c (insert_callee): Reorder call list so most recent
authorAlan Modra <amodra@bigpond.net.au>
Tue, 1 Apr 2008 23:52:00 +0000 (23:52 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Tue, 1 Apr 2008 23:52:00 +0000 (23:52 +0000)
commitfbbe87f7e2e71f143d908a1f3159986365b1297a
tree4d5a7d1339b19cca160c6c028841a37be4f04e34
parente4450037a723c28a78686f737eeda5f798502005
* elf32-spu.c (insert_callee): Reorder call list so most recent
call is always first.
(interesting_section): Move.
(mark_functions_via_relocs): Fold interesting_section and
reloc_count tests in callers to here.  Simplify output section
owner test.
(discover_functions): Set "gaps" when no symbols and some
"interesting_section".  Run pasted_function loop for no symbol
bfds.
(for_each_node, transfer_calls): New functions.
(mark_non_root): Adjust to suit for_each_node.
(call_graph_traverse): Likewise.  Fix memory leak.  Rename to..
(remove_cycles): ..this.
(build_call_tree): Use for_each_node and transfer_calls.
(struct _sum_stack_param): New.
(sum_stack): Adjust to suit for_each_node.  Return error on
malloc failure.  Move code to print root node cumulative stack from..
(spu_elf_stack_analysis): ..here.  Use for_each_node.
bfd/ChangeLog
bfd/elf32-spu.c