Skip to content

Commit 4ae82a8

Browse files
committed
make rm86 not define globals used for the core
1 parent 25b1e81 commit 4ae82a8

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

source/backends/rm86.d

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ class BackendRM86 : CompilerBackend {
6868
NewConst(format("%s.sizeof", type.name), cast(long) type.size);
6969
}
7070

71-
if (!opts.noDos) { // TODO: remove this
72-
globals ~= Global("__rm86_argv", GetType("addr"), false, 0);
73-
globals ~= Global("__rm86_arglen", GetType("cell"), false, 0);
74-
}
75-
7671
globals ~= Global("_cal_exception", GetType("Exception"), false, 0);
7772
}
7873

source/stackCheck.d

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,14 @@ class StackChecker {
221221
}
222222
}
223223

224+
whileStacks = whileStacks[0 .. $ - 1];
225+
224226
stack = oldStack;
225227
}
226228

227229
void EvaluateBreakContinue(WordNode node) {
228230
if (whileStacks.length == 0) {
229-
Error(node.error, "Not in while loops");
231+
Error(node.error, "Not in while loop");
230232
}
231233

232234
if (stack.length > whileStacks[$ - 1]) {

0 commit comments

Comments
 (0)