Bug#289884: Problem with compiler optimization (now with a patch)

2010-05-31 Thread Marc Pignat
On Sunday 30 May 2010 22:35:49 Niko Tyni wrote: > On Thu, May 27, 2010 at 08:29:14AM +0200, Marc Pignat wrote: ... > All my tests indicate that your solution works, so I intend to include > it in the next upload soon and notify upstream when we've verified the > bug is actually fixed with the new

Bug#289884: Problem with compiler optimization (now with a patch)

2010-05-30 Thread Niko Tyni
On Thu, May 27, 2010 at 08:29:14AM +0200, Marc Pignat wrote: > Only the -O0 fails... the compiler seems to have optimized away most of our > test!!! > > My proposed solution is to use the 'volatile' keyword to make sure the > compiler > will really do the job. > > Please note that it does not w

Bug#289884: Problem with compiler optimization (now with a patch)

2010-05-26 Thread Marc Pignat
Hi! I think I've found the (very bad) joke! I've extracted the code which detect alignment failures into a test/try.c, then I tried it : gcc -O0 -Wall -o try try.c && ./try write failed (efbe) pooky:~/test# gcc -O -Wall -o try try.c && ./try pooky:~/test# gcc -O1 -Wall -o try try.c && ./try