From 823fc61f00132adf8cad8decba3cd02a38b04b1f Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Thu, 21 Oct 2004 16:29:11 +0000 Subject: [PATCH] * elf32-xtensa.c (ebb_propose_action): Put declarations before statements. --- bfd/ChangeLog | 5 +++++ bfd/elf32-xtensa.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 93c2606e432..0aa7ddd9768 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2004-10-21 Bob Wilson + + * elf32-xtensa.c (ebb_propose_action): Put declarations before + statements. + 2004-10-21 H.J. Lu * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.94. diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c index 8d9649e3a60..472ec34f48d 100644 --- a/bfd/elf32-xtensa.c +++ b/bfd/elf32-xtensa.c @@ -5598,9 +5598,10 @@ ebb_propose_action (ebb_constraint *c, if (c->action_allocated <= c->action_count) { unsigned new_allocated, i; + proposed_action *new_actions; new_allocated = (c->action_count + 2) * 2; - proposed_action *new_actions = (proposed_action *) + new_actions = (proposed_action *) bfd_zmalloc (sizeof (proposed_action) * new_allocated); for (i = 0; i < c->action_count; i++) -- 2.30.2