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

Re: i386 "andl $65535,%eax" problem


   Date: Mon, 3 Apr 2000 21:40:37 +1000 (EST)
   From: Alan Modra <alan@linuxcare.com.au>

   The fix wasn't too bad after all.  BTW, this bug would only bite if
   a) in .code16 (or .code16gcc) mode and 
   b) assembling a 32-bit instruction with an inferred operand size prefix,
   c) with an immediate in the range 0xff80 to 0xffff.

   ie. You won't hit this one with normal gcc output.


   gas/ChangeLog
	   * config/tc-i386.c (i386_immediate): Don't assume a constant
	   immediate is necessarily 16 bits when in 16 bit code mode.
	   (md_assemble): Instead set guess_suffix here after we have checked
	   registers.

This is a bug fix which should presumably go into the 2.10 branch.

Philip, what policy do you want to follow for that?  Are you going to
watch binutils-cvs and pick up patches for the branch?  Or would you
like contributors to move patches over to the branch themselves?

Ian

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