* elf32-spu.c (mark_functions_via_relocs): Init broken_cycle field
authorAlan Modra <amodra@gmail.com>
Thu, 9 Jul 2009 10:58:06 +0000 (10:58 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 9 Jul 2009 10:58:06 +0000 (10:58 +0000)
of malloc'd struct call_info.
(pasted_function): Likewise, priority too.

bfd/ChangeLog
bfd/elf32-spu.c

index 6aa18520f30df20072f2c990671e5e9065fcd976..5cd91adcac3bf82409509702cbfe0019cb2e780e 100644 (file)
@@ -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
index 8b1a9f1d559e8a9269c570f2103ba90ecbf7c032..b571d6ab6470d98893a429eb7002de93fdeea956 100644 (file)
@@ -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);