1
0
mirror of https://github.com/golang/go synced 2024-10-04 06:21:23 -06:00
go/src/cmd/8g
Russ Cox ebce79446d build: annotations and modifications for c2go
The main changes fall into a few patterns:

1. Replace #define with enum.

2. Add /*c2go */ comment giving effect of #define.
This is necessary for function-like #defines and
non-enum-able #defined constants.
(Not all compilers handle negative or large enums.)

3. Add extra braces in struct initializer.
(c2go does not implement the full rules.)

This is enough to let c2go typecheck the source tree.
There may be more changes once it is doing
other semantic analyses.

LGTM=minux, iant
R=minux, dave, iant
CC=golang-codereviews
https://golang.org/cl/106860045
2014-07-02 15:41:29 -04:00
..
cgen64.c cmd/gc: contiguous loop layout 2012-05-30 18:07:39 -04:00
cgen.c cmd/8g: don't allocate a register early for cap(CHAN). 2014-07-01 09:20:51 +02:00
doc.go cmd/godoc: use go/build to determine package and example files 2013-02-19 11:19:58 -08:00
galign.c build: annotations and modifications for c2go 2014-07-02 15:41:29 -04:00
gg.h 5g, 8g: remove dead code 2014-02-25 14:43:53 -08:00
ggen.c cmd/6g, cmd/8g: disable Duff's device on NaCl. 2014-04-04 08:42:35 +02:00
gobj.c cmd/gc: bypass DATA instruction for data initialized to integer constant 2013-12-20 14:24:39 -05:00
gsubr.c build: annotations and modifications for c2go 2014-07-02 15:41:29 -04:00
Makefile build: delete make paraphernalia 2012-02-06 13:34:25 -05:00
opt.h build: annotations and modifications for c2go 2014-07-02 15:41:29 -04:00
peep.c build: annotations and modifications for c2go 2014-07-02 15:41:29 -04:00
prog.c cmd/8g: fix liveness for 387 build (including plan9) 2014-04-06 10:30:02 -04:00
reg.c build: annotations and modifications for c2go 2014-07-02 15:41:29 -04:00