This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Fix compile time warning in bfd/coff-alpha.c
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 11 Feb 2005 16:06:50 +0000
- Subject: Fix compile time warning in bfd/coff-alpha.c
Hi Guys,
I am applying the patch below to fix a compile time warning building
coff-alpha.c.
Cheers
Nick
bfd/ChangeLog
2005-02-11 Nick Clifton <nickc@redhat.com>
* coff-alpha.c (alpha_adjust_reloc_in): Remove redundant test from
BFD_ASSERT.
Index: bfd/coff-alpha.c
===================================================================
RCS file: /cvs/src/src/bfd/coff-alpha.c,v
retrieving revision 1.26
diff -c -3 -p -r1.26 coff-alpha.c
*** bfd/coff-alpha.c 31 Jan 2005 23:13:15 -0000 1.26
--- bfd/coff-alpha.c 11 Feb 2005 15:55:00 -0000
*************** alpha_adjust_reloc_in (abfd, intern, rpt
*** 668,674 ****
case ALPHA_R_OP_STORE:
/* The STORE reloc needs the size and offset fields. We store
them in the addend. */
! BFD_ASSERT (intern->r_offset <= 256 && intern->r_size <= 256);
rptr->addend = (intern->r_offset << 8) + intern->r_size;
break;
--- 668,674 ----
case ALPHA_R_OP_STORE:
/* The STORE reloc needs the size and offset fields. We store
them in the addend. */
! BFD_ASSERT (intern->r_offset <= 256);
rptr->addend = (intern->r_offset << 8) + intern->r_size;
break;