summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xconfig/nimrod.cfg3
-rwxr-xr-xlib/system/debugger.nim2
-rwxr-xr-xtests/compile/tsortdev.nim4
3 files changed, 6 insertions, 3 deletions
diff --git a/config/nimrod.cfg b/config/nimrod.cfg
index d81295e66..205ed1765 100755
--- a/config/nimrod.cfg
+++ b/config/nimrod.cfg
@@ -73,6 +73,9 @@ icc.options.linker = "-cxxlib"
 # Configuration for the GNU C/C++ compiler:
 @if windows:
   #gcc.path = r"$nimrod\dist\mingw\bin"
+  @if gcc:
+    tlsEmulation:on
+  @end
 @end
 gcc.options.debug = "-g3 -O0"
 
diff --git a/lib/system/debugger.nim b/lib/system/debugger.nim
index 6d5e2d648..564f080d1 100755
--- a/lib/system/debugger.nim
+++ b/lib/system/debugger.nim
@@ -55,7 +55,7 @@ var
                         # in it
   dbgState: TDbgState   # state of debugger
   dbgBP: array[0..127, TDbgBreakpoint] # breakpoints
-  dbgBPlen: int = 0
+  dbgBPlen: int
 
   dbgSkipToFrame: PFrame # frame to be skipped to
 
diff --git a/tests/compile/tsortdev.nim b/tests/compile/tsortdev.nim
index baf238d9e..1b7705d81 100755
--- a/tests/compile/tsortdev.nim
+++ b/tests/compile/tsortdev.nim
@@ -28,7 +28,7 @@ when isMainModule:
     var data: seq[string] = @[]
     
     var L = random(59)
-    for i in 0..10_000: 
+    for i in 0..2:
       #echo "loop: ", i
       #newSeq(data, L)
       setLen(data, L)
@@ -45,7 +45,7 @@ when isMainModule:
       if not sorted(data, order):
         quit "bubblesort failed"
 
-      #sort(copy, cmp, order)
+      sort(copy, cmp, order)
       for j in 0 .. L-1:
         let rc = getRefcount(data[j])
         if rc != 1: