octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #34210] profile.m test abort


From: marco atzeri
Subject: [Octave-bug-tracker] [bug #34210] profile.m test abort
Date: Fri, 30 Sep 2011 21:02:34 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20100101 Firefox/6.0.2

Follow-up Comment #10, bug #34210 (project octave):

attached a workaround patch effective for CYGWIN and MINGW
until we find a real FIXME.
No change for the other platforms.

I tried to build a simpler test case, but failed as
the bug disappear.
It must be some corner case of g++ or linker on MS.

--- a/src/profiler.cc   Fri Sep 30 14:40:33 2011 -0400
+++ b/src/profiler.cc   Fri Sep 30 22:48:02 2011 +0200
@@ -385,7 +385,22 @@
 profile_data_accumulator::query_time (void) const
 {
   octave_time now;
+
+#if defined (__CYGWIN__) || defined (__MINGW32__)
+
+// FIXME force storage and avoid optimization 
+// bug only on Windows platform (Cygwin and Mingw) 
+  double ora = now.double_value ();
+  char buff[64];
+  snprintf(buff,sizeof(buff), "Ora %e n", ora);
+  return ora ;
+
+#else
+
   return now.double_value ();
+
+#endif
+
 }
 
 void



(file #24061)
    _______________________________________________________

Additional Item Attachment:

File name: profiler.patch                 Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34210>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]