Reviewers: rsc,
Message:
Hello rsc@golang.org (cc: golang-dev@googlegroups.com),
I'd like you to review this change to
https://go.googlecode.com/hg/
Description:
cmd/gc: inlining functions with local variables
- make sure dclcontext == PAUTO only in function bodies
- introduce PDISCARD to discard declarations in bodies of repeated
imports
- skip printing initializing OAS'es in export mode, assuming they only
occur after ODCL's
- remove ODCL and the initializing OAS from inl.c:ishairy
- fix confused use of ->typecheck in typecheckinl: it's about the ->inl,
not about the fn.
- debuging aids: print ntype on ONAMEs too and -Emm instead of -Ell.
Please review this at http://codereview.appspot.com/6800043/
Affected files:
M src/cmd/gc/dcl.c
M src/cmd/gc/fmt.c
M src/cmd/gc/go.h
M src/cmd/gc/go.y
M src/cmd/gc/inl.c
src/cmd/gc/y.tab.c