AVR does not compile on head
Nick Clifton
nickc@redhat.com
Fri Jul 17 14:56:00 GMT 2009
Hi Joel,
> /home/joel/test-gcc/binutils-cvs/src/gas/config/tc-avr.c: In function
> ‘md_apply_fix’:
> /home/joel/test-gcc/binutils-cvs/src/gas/config/tc-avr.c:1249:2: error:
> case value ‘4294966468’ not in enumerated type ‘bfd_reloc_code_real_type’
I am not able to reproduce this, but I am probably using an older
compiler than you (gcc 4.3.2). Does the patch below fix the problem for
you ?
Cheers
Nick
Index: gas/config/tc-avr.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-avr.c,v
retrieving revision 1.63
diff -c -3 -p -r1.63 tc-avr.c
*** gas/config/tc-avr.c 3 Feb 2009 17:24:35 -0000 1.63
--- gas/config/tc-avr.c 17 Jul 2009 09:54:31 -0000
*************** md_apply_fix (fixS *fixP, valueT * valP,
*** 1244,1250 ****
}
else
{
! switch (fixP->fx_r_type)
{
case -BFD_RELOC_AVR_HI8_LDI_NEG:
case -BFD_RELOC_AVR_HI8_LDI:
--- 1244,1250 ----
}
else
{
! switch ((int) fixP->fx_r_type)
{
case -BFD_RELOC_AVR_HI8_LDI_NEG:
case -BFD_RELOC_AVR_HI8_LDI:
More information about the Binutils
mailing list