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 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;
  
  


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