1
0
mirror of https://github.com/golang/go synced 2024-11-20 07:34:40 -07:00
go/src/cmd/9g
Russ Cox 5c87cf7608 cmd/gc: minor adjustments for C to Go translation
- remove a few uses of ? :
- rename variables named len
- rewrite a few gotos as nested switches
- move goto targets to scope allowed by Go
- use consistent return type of anyregalloc
  (was int or int32 in different places)
- remove unused nr variable in agen
- include proper headers in generated builtin1.c
- avoid strange sized %E formats (%-6E, %2E)
- change gengcmask argument from uint8[16] to uint8*
  (diagnosed by c2go; not an array in any real sense).
- replace #ifdef XXX with comment block in 5g/peep.c
- expand and remove FAIL macro from 5g
- expand and remove noimpl macro from 9g
- print regalloc errors to stdout in 8g
  (only use of fprint(2, ...) in all compilers)

Still producing bit-for-bit identical output.

Change-Id: Id46efcd2a89241082b234f63f375b66f2754d695
Reviewed-on: https://go-review.googlesource.com/4646
Reviewed-by: Austin Clements <austin@google.com>
2015-02-13 17:31:16 +00:00
..
cgen.c cmd/gc: minor adjustments for C to Go translation 2015-02-13 17:31:16 +00:00
doc.go all: power64 is now ppc64 2014-12-05 19:13:20 -05:00
galign.c cmd/gc: rename arch to thearch 2015-02-13 17:30:55 +00:00
gg.h cmd/gc: minor adjustments for C to Go translation 2015-02-13 17:31:16 +00:00
ggen.c cmd/gc: move reg.c into portable code 2015-02-11 20:37:38 +00:00
gsubr.c cmd/gc: minor adjustments for C to Go translation 2015-02-13 17:31:16 +00:00
opt.h cmd/gc: move reg.c into portable code 2015-02-11 20:37:38 +00:00
peep.c cmd/gc: minor adjustments for C to Go translation 2015-02-13 17:31:16 +00:00
prog.c cmd/gc: move reg.c into portable code 2015-02-11 20:37:38 +00:00
reg.c cmd/gc: move reg.c into portable code 2015-02-11 20:37:38 +00:00