/fix-7g
https://code.google.com/p/7g-patches/ · #! · 80 lines · 65 code · 15 blank · 0 comment · 0 complexity · 0eec7fc103ffb4f52755453f59be7932 MD5 · raw file
- # HG changeset patch
- # Parent 3d4cff9691248f55cce854e054f799fd0791df55
- diff --git a/src/cmd/7g/Makefile b/src/cmd/7g/Makefile
- --- a/src/cmd/7g/Makefile
- +++ b/src/cmd/7g/Makefile
- @@ -5,16 +5,16 @@
- include ../../Make.inc
- O:=$(HOST_O)
-
- -TARG=8g
- +TARG=7g
-
- HFILES=\
- ../gc/go.h\
- - ../8l/8.out.h\
- + ../7l/7.out.h\
- gg.h\
- opt.h\
-
- OFILES=\
- - ../8l/enam.$O\
- + ../7l/enam.$O\
- cgen.$O\
- cgen64.$O\
- cplx.$O\
- diff --git a/src/cmd/7g/doc.go b/src/cmd/7g/doc.go
- --- a/src/cmd/7g/doc.go
- +++ b/src/cmd/7g/doc.go
- @@ -4,10 +4,10 @@
-
- /*
-
- -8g is the version of the gc compiler for the x86.
- -The $GOARCH for these tools is 386.
- +7g is the version of the gc compiler for the JVM.
- +The $GOARCH for these tools is jvm.
-
- -It reads .go files and outputs .8 files. The flags are documented in ../gc/doc.go.
- +It reads .go files and outputs .class files. The flags are documented in ../gc/doc.go.
-
- There is no instruction optimizer, so the -N flag is a no-op.
-
- diff --git a/src/cmd/7g/galign.c b/src/cmd/7g/galign.c
- --- a/src/cmd/7g/galign.c
- +++ b/src/cmd/7g/galign.c
- @@ -4,8 +4,8 @@
-
- #include "gg.h"
-
- -int thechar = '8';
- -char* thestring = "386";
- +int thechar = '7';
- +char* thestring = "jvm";
-
-
- /*
- diff --git a/src/cmd/7g/gg.h b/src/cmd/7g/gg.h
- --- a/src/cmd/7g/gg.h
- +++ b/src/cmd/7g/gg.h
- @@ -6,7 +6,7 @@
- #include <libc.h>
-
- #include "../gc/go.h"
- -#include "../8l/8.out.h"
- +#include "../7l/7.out.h"
-
- #ifndef EXTERN
- #define EXTERN extern
- diff --git a/src/cmd/7g/gobj.c b/src/cmd/7g/gobj.c
- --- a/src/cmd/7g/gobj.c
- +++ b/src/cmd/7g/gobj.c
- @@ -1,5 +1,5 @@
- -// Derived from Inferno utils/8c/swt.c
- -// http://code.google.com/p/inferno-os/source/browse/utils/8c/swt.c
- +// Derived from Inferno utils/7c/swt.c
- +// http://code.google.com/p/inferno-os/source/browse/utils/7c/swt.c
- //
- // Copyright Š 1994-1999 Lucent Technologies Inc. All rights reserved.
- // Portions Copyright Š 1995-1997 C H Forsyth (forsyth@terzarima.net)