This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Fix C99-style declaration in bfd/elf32-xtensa.c
- From: Bob Wilson <bwilson at tensilica dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 21 Oct 2004 09:42:08 -0700
- Subject: Fix C99-style declaration in bfd/elf32-xtensa.c
- Organization: Tensilica, Inc.
A C99-style declaration in the middle of a block slipped into the BFD
elf32-xtensa.c file. I didn't notice it until I tried building with an older
version of GCC. Here's the fix. Committed on the mainline.
2004-10-21 Bob Wilson <bob.wilson@acm.org>
* elf32-xtensa.c (ebb_propose_action): Put declarations before
statements.
Index: elf32-xtensa.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-xtensa.c,v
retrieving revision 1.37
diff -u -p -r1.37 elf32-xtensa.c
--- elf32-xtensa.c 12 Oct 2004 23:05:30 -0000 1.37
+++ elf32-xtensa.c 21 Oct 2004 16:27:07 -0000
@@ -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++)