shkolnick-kun / bugurtos

Breaking backward compatibility since 2010!!!
GNU General Public License v3.0
132 stars 9 forks source link

Bug in VSMP component #8

Closed shkolnick-kun closed 9 years ago

shkolnick-kun commented 9 years ago

Usage of -Os option breaked avr/gcc-vsmp port in several cases:

  1. Compiler deleted "unnecessary" code;
  2. Some variables must be declared volatile for correct processing with -Os;
  3. In BuguRTOS VSMP port itself naked functions were used, but in fact these functions had to be ordinary.
  4. In BuguRTOS VSMP port avr-gcc emitted erronious code in OS ISR prologue and epilogue macros (IMHO, that's avr-gcc bug).