diff options
author | Alan Modra <amodra@gmail.com> | 2009-07-09 10:58:06 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2009-07-09 10:58:06 +0000 |
commit | 9c4d0c1fb84afbb659db9f65018dd6e34b4ebb3e (patch) | |
tree | 39c4859abf909d08cc05da4cb03cabccd3279d10 /bfd | |
parent | c921be7d91493b707293202625c4b8d77b0486c1 (diff) | |
download | gdb-9c4d0c1fb84afbb659db9f65018dd6e34b4ebb3e.zip gdb-9c4d0c1fb84afbb659db9f65018dd6e34b4ebb3e.tar.gz gdb-9c4d0c1fb84afbb659db9f65018dd6e34b4ebb3e.tar.bz2 |
* elf32-spu.c (mark_functions_via_relocs): Init broken_cycle field
of malloc'd struct call_info.
(pasted_function): Likewise, priority too.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elf32-spu.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6aa1852..5cd91ad 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2009-07-09 Alan Modra <amodra@bigpond.net.au> + + * elf32-spu.c (mark_functions_via_relocs): Init broken_cycle field + of malloc'd struct call_info. + (pasted_function): Likewise, priority too. + 2009-07-07 Alan Modra <amodra@bigpond.net.au> * elf32-spu.c (spu_elf_auto_overlay): Take into account section diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 8b1a9f1..b571d6a 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -2785,6 +2785,7 @@ mark_functions_via_relocs (asection *sec, return FALSE; callee->is_tail = !is_call; callee->is_pasted = FALSE; + callee->broken_cycle = FALSE; callee->priority = priority; callee->count = 1; if (callee->fun->last_caller != sec) @@ -2878,6 +2879,8 @@ pasted_function (asection *sec) callee->fun = fun; callee->is_tail = TRUE; callee->is_pasted = TRUE; + callee->broken_cycle = FALSE; + callee->priority = 0; callee->count = 1; if (!insert_callee (fun_start, callee)) free (callee); |