This is the mail archive of the binutils@sourceware.org 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]

Re: Gas regressions for cris-elf


On Thu, Apr 06, 2006 at 01:31:46PM +0930, Alan Modra wrote:
> On Thu, Apr 06, 2006 at 05:48:56AM +0200, Hans-Peter Nilsson wrote:
> > /h/hp/binutils/cvs_latest/src/gas/testsuite/gas/cris/binop-segref.s:37: Error: Immediate value not in 8 bit range: -327683
> 
> Yes, this is probably my patch.

	* frags.c (frag_offset_fixed_p): Reinitialise offset before
	second scan.

Index: gas/frags.c
===================================================================
RCS file: /cvs/src/src/gas/frags.c,v
retrieving revision 1.19
diff -u -p -r1.19 frags.c
--- gas/frags.c	4 Apr 2006 08:04:57 -0000	1.19
+++ gas/frags.c	6 Apr 2006 04:31:44 -0000
@@ -419,6 +419,7 @@ frag_offset_fixed_p (fragS *frag1, fragS
     }
 
   /* Maybe frag1 is after frag2.  */
+  off = frag1->fr_address - frag2->fr_address;
   frag = frag2;
   while (frag->fr_type == rs_fill)
     {

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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