This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix C99-style declaration in bfd/elf32-xtensa.c


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++)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]