This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Remove C99-ism in elflink.c
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: binutils at sourceware dot org
- Date: Fri, 14 Jul 2006 23:05:57 +0200 (CEST)
- Subject: [PATCH] Remove C99-ism in elflink.c
Makes things compile again on OpenBSD/alpha (which uses GCC 2.95).
Committed as obvious.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* elflink.c (bfd_elf_size_dynsym_hash_dynstr): Move declarations
to the start of a block.
Index: elflink.c
===================================================================
RCS file: /cvs/src/src/bfd/elflink.c,v
retrieving revision 1.222
diff -u -p -r1.222 elflink.c
--- elflink.c 12 Jul 2006 15:45:32 -0000 1.222
+++ elflink.c 14 Jul 2006 10:56:45 -0000
@@ -6060,8 +6060,8 @@ bfd_elf_size_dynsym_hash_dynstr (bfd *ou
}
else
{
- BFD_ASSERT (cinfo.min_dynindx != -1);
unsigned long int maskwords, maskbitslog2;
+ BFD_ASSERT (cinfo.min_dynindx != -1);
maskbitslog2 = bfd_log2 (cinfo.nsyms) + 1;
if (maskbitslog2 < 3)