]> Cypherpunks repositories - gostls13.git/commit
another step toward eliminating forward declarations.
authorRuss Cox <rsc@golang.org>
Fri, 17 Jul 2009 08:00:44 +0000 (01:00 -0700)
committerRuss Cox <rsc@golang.org>
Fri, 17 Jul 2009 08:00:44 +0000 (01:00 -0700)
commite52e9ca82ef1b51c440e37bf9b8dd806d9a3e170
treec48ef999485a2acaf2a5c311c818bb834272c32a
parent9b475bd2a4dc72728db4178e9c15b571f4676bea
another step toward eliminating forward declarations.

introduce NodeList* type in compiler to replace OLIST.
this clarifies where lists can and cannot occur.
list append and concatenation are now cheap.
the _r rules are gone from yacc.
rev and unrev are gone.
no more lists of lists.

the representation of assignments is a bit clunkier.
split into OAS (1=1) and OAS2 (2 or more on one side).

delete dead chanrecv3 code.

delay construction of func types.

R=ken
OCL=31745
CL=31762
18 files changed:
src/cmd/5g/ggen.c
src/cmd/6g/ggen.c
src/cmd/8g/ggen.c
src/cmd/gc/align.c
src/cmd/gc/builtin.c.boot
src/cmd/gc/dcl.c
src/cmd/gc/gen.c
src/cmd/gc/go.h
src/cmd/gc/go.y
src/cmd/gc/lex.c
src/cmd/gc/reflect.c
src/cmd/gc/sinit.c
src/cmd/gc/subr.c
src/cmd/gc/swt.c
src/cmd/gc/sys.go
src/cmd/gc/walk.c
src/pkg/runtime/chan.c
test/golden.out