• Luuk van Dijk's avatar
    cmd/gc: inlining functions with local variables · 530147e8
    Luuk van Dijk authored
    - 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.
    
    fixes #2812
    
    R=rsc
    CC=golang-dev
    https://golang.org/cl/6800043
    530147e8
inl.c 19.7 KB