> How does it compile if you change the C code to this?:
> [manually factoring out the common code]

Yes, that will fix this particularly obvious instance, but it looks
like gcc is failing to factor out common code like this in less
obvious places as well...

(Hmm.  It behaves differently (correctly!) with attribute OS_main
instead of naked.  That's also "interesting.")

_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to