[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] GCC 4.5.x bug on volatile



Hello.

I have hit a bug in GCC 4.5.x which was the cause of non-working keyboard in EmuTOS. It is about the volatile keyword being ignored in some cases, such as functions automatically inlined. Fortunately this bug had already been filed and fixed in CVS, it will be fixed in the next GCC 4.5.2.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45052

Just in case you are facing some unexplainable behaviour in your software (mainly low-level stuff like the FreeMiNT kernel), you can compile with the -fipa-pure-const option as a global workaround to see if it improves things. The resulting program will be a bit less optimal, but bug-free.

--
Vincent Rivière