On Thu, Jul 27, 2006 at 09:10:41PM +0200, Matthias Drochner wrote: > Is this a known gcc4 bug? Anyone has a better idea how > to work around this? I think the compiler is allowed to do this optimization, and the volatile temporary you added is the right way to instruct it not to do so. Martin