AVR [patch] Avrtiny26 controller is not subarch avr25
Original Reporter info from Mantis: ccrause @ccrause
-
Reporter name: Christo Crause
Original Reporter info from Mantis: ccrause @ccrause
- Reporter name: Christo Crause
Description:
The avrtiny26 controller is listed as an avr2 by https://gcc.gnu.org/onlinedocs/gcc/AVR-Options.html. According to its datasheet it doesn't support the MOVW instruction, hence incorrect code can be generated if it remains part of the avr25 subarch group in FPC. The attached patch changes the subarch for avrtiny26 to vr2 and also adds CPUAVR_HAS_LPMX to avr2's capabilities (according to avrtiny26 datasheet).
Mantis conversion info:
- Mantis ID: 36620
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 44019 (#f2618cb6)