From mint-bounce@lists.fishpool.fi Sat Sep 25 13:23:45 2010 Message-ID: <4C9E2F7B.3010604@freesbee.fr> Date: Sat, 25 Sep 2010 19:20:59 +0200 From: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: mint@lists.fishpool.fi Subject: [MiNT] GCC 4.5.x bug on volatile Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id o8PHNjdE026072 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