This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch] invalid error reports on v850-elf target/ppc-darwin host
- From: Nick Clifton <nickc at redhat dot com>
- To: Masaki Muranaka <monaka at monami-software dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 21 May 2008 14:55:37 +0100
- Subject: Re: [patch] invalid error reports on v850-elf target/ppc-darwin host
- References: <26322703-36CC-4C3F-A4AC-431A50CC0203@monami-software.com> <4811F2CD.3050801@redhat.com> <2E45C326-2048-4638-A727-B791E3BFFA25@monami-software.com>
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;