summaryrefslogtreecommitdiff
path: root/6/main.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-12-25 13:46:56 -0800
committerOri Bernstein <ori@eigenstate.org>2014-12-25 13:46:56 -0800
commit3bbb5e43836cd3ea0df46d6adea3dbedd678785f (patch)
tree1ebe95408dc361a5fe5b0e7e95acac4d4f468800 /6/main.c
parent079536dfac30da7db118b8184ec04f0afdd4d461 (diff)
downloadmc-3bbb5e43836cd3ea0df46d6adea3dbedd678785f.tar.gz
Fix a few more bad asm issues on plan9.
Mostly to do with insn naming and symbol visibility.
Diffstat (limited to '6/main.c')
-rw-r--r--6/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/6/main.c b/6/main.c
index f2e02da..2bcd6ff 100644
--- a/6/main.c
+++ b/6/main.c
@@ -27,6 +27,7 @@ int p9asm;
char *outfile;
char **incpaths;
size_t nincpaths;
+Asmsyntax asmsyntax;
static void usage(char *prog)
{
@@ -126,7 +127,6 @@ int main(int argc, char **argv)
char buf[1024];
Stab *globls;
Optctx ctx;
- Asmsyntax asmsyntax;
size_t i;
optinit(&ctx, "d:hSo:I:9G", argv, argc);
@@ -188,7 +188,7 @@ int main(int argc, char **argv)
} else {
gentemp(buf, sizeof buf, ctx.args[i], ".s");
}
- gen(asmsyntax, file, buf);
+ gen(file, buf);
assemble(buf, ctx.args[i]);
genuse(ctx.args[i]);
}