Over optimisation

Michel Decima michel.decima@cnet.francetelecom.fr
Thu Sep 30 23:56:00 GMT 1999


Andrew Davies wrote:

> I think the optimiser is assuming the line inside the do while loop is
> static and therefore removes it from the loop. As a result it gets stuck.
> Anyone know how to solve this without turning the optimiser off?

volatile int test; 

HTH

--
mailto:michel.decima@cnet.francetelecom.fr



More information about the Gcc-help mailing list