I have made an attempt at fixing an AVR related bug. Since this is my first attempt at messing with the compiler, I would like a review and critique of my attempt.
The bug seems to be caused by the absence of the MUL instruction for the limited AVR subarchitectures (avr1 - avr35). As far as I could see there is no fallback code for the case where CPUAVR_HAS_MUL is not defined for an 8 bit MUL operation. I have copied the code for the corresponding 16 bit MUL branch, then copied and adapted the pascal code for fpc_mul_xxx etc in rtl/inc/generic.inc and added declarations to rtl/inc/generic.inc.
Can anyone see any problems with this approach, or perhaps suggest a better approach to fix this bug?
Thanks
