On 23 July 2010 09:24, Huang Bambo wrote: > The current gcc( 4.3.4 ) has some bug with O3 option. it will > optimized out some needed code in some case. > I meet this bug when I compile ACE library. > If I use O2 option, everything goes fine.
Have you got any actual evidence for this being a bug in gcc rather than in your program? It's quite common that subtle program bugs get exposed differently by different optimisations. This might also be relevant: http://en.wikipedia.org/wiki/Aliasing_(computing)#Conflicts_with_optimization Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple