# HG changeset patch # User John W. Eaton # Date 1317668700 14400 # Node ID b1882a8217abf3d9657f5f32cc7d0126688710a8 # Parent 571557ddabb94cfc66673d99a758999d187ea995 avoid apparent compiler optimization problem on Cygwin and MinGW systems (bug #34210) * profiler.cc (profile_data_accumulator::query_time) Force storage of current time as a double on Cygwin and MinGW systems. diff --git a/src/profiler.cc b/src/profiler.cc --- a/src/profiler.cc +++ b/src/profiler.cc @@ -385,7 +385,12 @@ profile_data_accumulator::query_time (void) const { octave_time now; - return now.double_value (); + // FIXME -- this should be removed at some point... See bug 34210. +#if defined (CYGWIN) || defined (MINGW) + volatile +#endif + double dnow = now.double_value (); + return dnow; } void