summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-08-07 00:31:37 +0200
committerAraq <rumpf_a@web.de>2017-08-13 02:51:00 +0200
commit6b3af6a5d7a370784c3191c7640965b3b9e00f59 (patch)
tree02245ba618f7321ca828f17133fb214852fa44ae /compiler
parent838be26f5368724f2b9a168627a1b119815e70b6 (diff)
downloadNim-6b3af6a5d7a370784c3191c7640965b3b9e00f59.tar.gz
WIP: --gc:regions instead of --gc:stack
Diffstat (limited to 'compiler')
-rw-r--r--compiler/commands.nim8
-rw-r--r--compiler/options.nim2
2 files changed, 5 insertions, 5 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index 22e4b5a2c..e837ee922 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -207,7 +207,7 @@ proc testCompileOptionArg*(switch, arg: string, info: TLineInfo): bool =
     of "generational": result = gSelectedGC == gcGenerational
     of "go":           result = gSelectedGC == gcGo
     of "none":         result = gSelectedGC == gcNone
-    of "stack":        result = gSelectedGC == gcStack
+    of "stack", "regions": result = gSelectedGC == gcRegions
     else: localError(info, errNoneBoehmRefcExpectedButXFound, arg)
   of "opt":
     case arg.normalize
@@ -429,9 +429,9 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
     of "none":
       gSelectedGC = gcNone
       defineSymbol("nogc")
-    of "stack":
-      gSelectedGC= gcStack
-      defineSymbol("gcstack")
+    of "stack", "regions":
+      gSelectedGC= gcRegions
+      defineSymbol("gcregions")
     else: localError(info, errNoneBoehmRefcExpectedButXFound, arg)
   of "warnings", "w":
     if processOnOffSwitchOrList({optWarns}, arg, pass, info): listWarnings()
diff --git a/compiler/options.nim b/compiler/options.nim
index 5c39faf3b..e9193f81e 100644
--- a/compiler/options.nim
+++ b/compiler/options.nim
@@ -94,7 +94,7 @@ type
     cmdRun                    # run the project via TCC backend
   TStringSeq* = seq[string]
   TGCMode* = enum             # the selected GC
-    gcNone, gcBoehm, gcGo, gcStack, gcMarkAndSweep, gcRefc,
+    gcNone, gcBoehm, gcGo, gcRegions, gcMarkAndSweep, gcRefc,
     gcV2, gcGenerational
 
   IdeCmd* = enum