View | Details | Raw Unified | Return to bug 2626
Collapse All | Expand All

(-)binutils-20060817-1/include/opcode/avr.h.orig (+2 lines)
Lines 34-39 Link Here
34
#define AVR_ISA_TINY1 (AVR_ISA_1200 | AVR_ISA_LPM)
34
#define AVR_ISA_TINY1 (AVR_ISA_1200 | AVR_ISA_LPM)
35
#define AVR_ISA_PWMx  (AVR_ISA_M8   | AVR_ISA_BRK)
35
#define AVR_ISA_PWMx  (AVR_ISA_M8   | AVR_ISA_BRK)
36
#define AVR_ISA_2xxx  (AVR_ISA_TINY1 | AVR_ISA_SRAM)
36
#define AVR_ISA_2xxx  (AVR_ISA_TINY1 | AVR_ISA_SRAM)
37
/* Special hack in tc-avr.c attiny26 is missing LPM Rd,Z+ */
38
#define AVR_ISA_2xxe  (AVR_ISA_2xxx | AVR_ISA_LPMX)
37
#define AVR_ISA_TINY2 (AVR_ISA_2xxx | AVR_ISA_MOVW | AVR_ISA_LPMX | \
39
#define AVR_ISA_TINY2 (AVR_ISA_2xxx | AVR_ISA_MOVW | AVR_ISA_LPMX | \
38
                       AVR_ISA_SPM  | AVR_ISA_BRK)
40
                       AVR_ISA_SPM  | AVR_ISA_BRK)
39
#define AVR_ISA_M8    (AVR_ISA_2xxx | AVR_ISA_MUL | AVR_ISA_MOVW | \
41
#define AVR_ISA_M8    (AVR_ISA_2xxx | AVR_ISA_MUL | AVR_ISA_MOVW | \
(-)binutils-20060817-1/gas/config/tc-avr.c.orig (-1 / +5 lines)
Lines 78-84 Link Here
78
  {"at90s2333",  AVR_ISA_2xxx,    bfd_mach_avr2}, /* XXX -> 4433 */
78
  {"at90s2333",  AVR_ISA_2xxx,    bfd_mach_avr2}, /* XXX -> 4433 */
79
  {"at90s2343",  AVR_ISA_2xxx,    bfd_mach_avr2},
79
  {"at90s2343",  AVR_ISA_2xxx,    bfd_mach_avr2},
80
  {"attiny22",   AVR_ISA_2xxx,    bfd_mach_avr2}, /* XXX -> 2343 */
80
  {"attiny22",   AVR_ISA_2xxx,    bfd_mach_avr2}, /* XXX -> 2343 */
81
  {"attiny26",   AVR_ISA_2xxx,    bfd_mach_avr2},
81
  {"attiny26",   AVR_ISA_2xxe,    bfd_mach_avr2},
82
  {"at90s4433",  AVR_ISA_2xxx,    bfd_mach_avr2},
82
  {"at90s4433",  AVR_ISA_2xxx,    bfd_mach_avr2},
83
  {"at90s4414",  AVR_ISA_2xxx,    bfd_mach_avr2}, /* XXX -> 8515 */
83
  {"at90s4414",  AVR_ISA_2xxx,    bfd_mach_avr2}, /* XXX -> 8515 */
84
  {"at90s4434",  AVR_ISA_2xxx,    bfd_mach_avr2}, /* XXX -> 8535 */
84
  {"at90s4434",  AVR_ISA_2xxx,    bfd_mach_avr2}, /* XXX -> 8535 */
Lines 792-797 Link Here
792
	  ++str;
792
	  ++str;
793
	  op_mask |= 1;
793
	  op_mask |= 1;
794
	}
794
	}
795
      /* attiny26 can do "lpm" and "lpm r,Z" but no postincrement. */
796
      if (!avr_opt.all_opcodes && (op_mask & 0x0001)
797
          && !(avr_mcu->isa & AVR_ISA_MOVW))
798
        as_bad (_("postincrement not supported"));
795
      break;
799
      break;
796
800
797
    case 'b':
801
    case 'b':

Return to bug 2626