/fix-7g

https://code.google.com/p/7g-patches/ · #! · 80 lines · 65 code · 15 blank · 0 comment · 0 complexity · 0eec7fc103ffb4f52755453f59be7932 MD5 · raw file

  1. # HG changeset patch
  2. # Parent 3d4cff9691248f55cce854e054f799fd0791df55
  3. diff --git a/src/cmd/7g/Makefile b/src/cmd/7g/Makefile
  4. --- a/src/cmd/7g/Makefile
  5. +++ b/src/cmd/7g/Makefile
  6. @@ -5,16 +5,16 @@
  7. include ../../Make.inc
  8. O:=$(HOST_O)
  9. -TARG=8g
  10. +TARG=7g
  11. HFILES=\
  12. ../gc/go.h\
  13. - ../8l/8.out.h\
  14. + ../7l/7.out.h\
  15. gg.h\
  16. opt.h\
  17. OFILES=\
  18. - ../8l/enam.$O\
  19. + ../7l/enam.$O\
  20. cgen.$O\
  21. cgen64.$O\
  22. cplx.$O\
  23. diff --git a/src/cmd/7g/doc.go b/src/cmd/7g/doc.go
  24. --- a/src/cmd/7g/doc.go
  25. +++ b/src/cmd/7g/doc.go
  26. @@ -4,10 +4,10 @@
  27. /*
  28. -8g is the version of the gc compiler for the x86.
  29. -The $GOARCH for these tools is 386.
  30. +7g is the version of the gc compiler for the JVM.
  31. +The $GOARCH for these tools is jvm.
  32. -It reads .go files and outputs .8 files. The flags are documented in ../gc/doc.go.
  33. +It reads .go files and outputs .class files. The flags are documented in ../gc/doc.go.
  34. There is no instruction optimizer, so the -N flag is a no-op.
  35. diff --git a/src/cmd/7g/galign.c b/src/cmd/7g/galign.c
  36. --- a/src/cmd/7g/galign.c
  37. +++ b/src/cmd/7g/galign.c
  38. @@ -4,8 +4,8 @@
  39. #include "gg.h"
  40. -int thechar = '8';
  41. -char* thestring = "386";
  42. +int thechar = '7';
  43. +char* thestring = "jvm";
  44. /*
  45. diff --git a/src/cmd/7g/gg.h b/src/cmd/7g/gg.h
  46. --- a/src/cmd/7g/gg.h
  47. +++ b/src/cmd/7g/gg.h
  48. @@ -6,7 +6,7 @@
  49. #include <libc.h>
  50. #include "../gc/go.h"
  51. -#include "../8l/8.out.h"
  52. +#include "../7l/7.out.h"
  53. #ifndef EXTERN
  54. #define EXTERN extern
  55. diff --git a/src/cmd/7g/gobj.c b/src/cmd/7g/gobj.c
  56. --- a/src/cmd/7g/gobj.c
  57. +++ b/src/cmd/7g/gobj.c
  58. @@ -1,5 +1,5 @@
  59. -// Derived from Inferno utils/8c/swt.c
  60. -// http://code.google.com/p/inferno-os/source/browse/utils/8c/swt.c
  61. +// Derived from Inferno utils/7c/swt.c
  62. +// http://code.google.com/p/inferno-os/source/browse/utils/7c/swt.c
  63. //
  64. // Copyright Š 1994-1999 Lucent Technologies Inc. All rights reserved.
  65. // Portions Copyright Š 1995-1997 C H Forsyth (forsyth@terzarima.net)