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: [patch] invalid error reports on v850-elf target/ppc-darwin host


Hi Masaki-san,

I found that bug when I compiled gcc-3.4.6 (v850-elf target) with recent binutils. An error message is follows:
../../gcc/config/v850/lib1funcs.asm: Assembler messages:
../../gcc/config/v850/lib1funcs.asm:1613: Error: prepare {r20-r29},0: operand out of range (0 is not between 0 and -1)


I'm sorry I can't create a pinpoint test case as I'm not good at v850 assembler.

OK, in which case please could you try out the attached, simpler patch, which I think will work but which should also cover the other tests not addressed by your patch.


Cheers
  Nick
Index: gas/config/tc-v850.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-v850.c,v
retrieving revision 1.53
diff -c -3 -p -r1.53 tc-v850.c
*** gas/config/tc-v850.c	17 Oct 2007 16:45:55 -0000	1.53
--- gas/config/tc-v850.c	21 May 2008 13:53:07 -0000
*************** v850_insert_operand (unsigned long insn,
*** 1513,1519 ****
      }
    else
      {
!       if (operand->bits != 32)
  	{
  	  long min, max;
  
--- 1513,1519 ----
      }
    else
      {
!       if (operand->bits != 32 && operand->bits != -1)
  	{
  	  long min, max;
  

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