This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Fix compile time warning in bfd/elf32-m32r.c
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 11 Feb 2005 17:28:17 +0000
- Subject: Fix compile time warning in bfd/elf32-m32r.c
Hi Guys,
I am applying the patch below to fix a compile time warning building
bfd/elf32-m32r.c,
Cheers
Nick
bfd/ChangeLog
2005-02-11 Nick Clifton <nickc@redhat.com>
* elf32-m32r.c (m32r_reloc_map_old): Use #ifdef
USE_M32R_OLD_RELOC to protect the declaration of this array.
Index: bfd/elf32-m32r.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-m32r.c,v
retrieving revision 1.56
diff -c -3 -p -r1.56 elf32-m32r.c
*** bfd/elf32-m32r.c 31 Jan 2005 23:13:21 -0000 1.56
--- bfd/elf32-m32r.c 11 Feb 2005 17:15:52 -0000
*************** struct m32r_reloc_map
*** 1254,1259 ****
--- 1254,1260 ----
unsigned char elf_reloc_val;
};
+ #ifdef USE_M32R_OLD_RELOC
static const struct m32r_reloc_map m32r_reloc_map_old[] =
{
{ BFD_RELOC_NONE, R_M32R_NONE },
*************** static const struct m32r_reloc_map m32r_
*** 1270,1276 ****
{ BFD_RELOC_VTABLE_INHERIT, R_M32R_GNU_VTINHERIT },
{ BFD_RELOC_VTABLE_ENTRY, R_M32R_GNU_VTENTRY },
};
!
static const struct m32r_reloc_map m32r_reloc_map[] =
{
{ BFD_RELOC_NONE, R_M32R_NONE },
--- 1271,1277 ----
{ BFD_RELOC_VTABLE_INHERIT, R_M32R_GNU_VTINHERIT },
{ BFD_RELOC_VTABLE_ENTRY, R_M32R_GNU_VTENTRY },
};
! #else
static const struct m32r_reloc_map m32r_reloc_map[] =
{
{ BFD_RELOC_NONE, R_M32R_NONE },
*************** static const struct m32r_reloc_map m32r_
*** 1305,1310 ****
--- 1306,1312 ----
{ BFD_RELOC_M32R_GOTOFF_HI_SLO, R_M32R_GOTOFF_HI_SLO },
{ BFD_RELOC_M32R_GOTOFF_LO, R_M32R_GOTOFF_LO },
};
+ #endif
static reloc_howto_type *
bfd_elf32_bfd_reloc_type_lookup (abfd, code)