From 8527f49e24b1145a7c6e3020d4a7d8aa51625b17 Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Thu, 5 Jun 2008 16:57:26 -0700 Subject: [PATCH] goos and goarch SVN=121349 --- src/cmd/6a/lex.c | 3 ++- src/cmd/6c/swt.c | 2 +- src/cmd/6g/obj.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cmd/6a/lex.c b/src/cmd/6a/lex.c index ff0a0d56ee..1a1e30f152 100644 --- a/src/cmd/6a/lex.c +++ b/src/cmd/6a/lex.c @@ -41,6 +41,7 @@ main(int argc, char *argv[]) thechar = '6'; thestring = "amd64"; + memset(debug, 0, sizeof(debug)); cinit(); outfile = 0; @@ -166,7 +167,7 @@ assemble(char *file) pass = 1; pinit(file); - Bprint(&obuf, "x86-64\n"); + Bprint(&obuf, "%s\n", thestring); for(i=0; i