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: AVR does not compile on head


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:


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