Mercurial > hg > octave-terminal
changeset 13269:b1882a8217ab
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.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 03 Oct 2011 15:05:00 -0400 |
parents | 571557ddabb9 |
children | eae58f217102 |
files | src/profiler.cc |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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