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]

[committed] small one liner in gas


Fixes a small bug Zack ran into with:

lw $3,%half($gp)

where he was getting an internal error in gas for this.

The fx_size was 4 because that's the size of the data worked on, not 2
which is the size in the howto. Anyhow, instead of changing the assert
to 4 I just removed it since none of the other relocations have asserts
in them.

-eric

-- 
Eric Christopher <echristo@redhat.com>

2004-10-04  Eric Christopher  <echristo@redhat.com>

	* config/tc-mips.c (md_apply_fix3): Remove erroneous assert.\

Index: config/tc-mips.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mips.c,v
retrieving revision 1.270
diff -u -p -w -r1.270 tc-mips.c
--- config/tc-mips.c	18 Aug 2004 15:58:11 -0000	1.270
+++ config/tc-mips.c	4 Oct 2004 23:16:13 -0000
@@ -11004,7 +11004,6 @@ md_apply_fix3 (fixS *fixP, valueT *valP,
     case BFD_RELOC_16:
       /* If we are deleting this reloc entry, we must fill in the
          value now.  */
-      assert (fixP->fx_size == 2);
       if (fixP->fx_done)
 	md_number_to_chars (buf, *valP, 2);
       break;



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