compiler: centralize all symbol name handling

Programming / Compilers / GCC - ian [138bc75d-0d04-0410-961f-82ee72b054a4] - 5 October 2017 13:20 EDT

Consolidate all symbol name handling into the new file names.cc. This is intended to define all the names that will appear in the generated assembly code. Names that will not appear in the assembly code, such as local variable names or label names, remain where they are.

This consolidation is not intended to change any of the existing symbol names. Tested by building without and without this patch and comparing the libgo symbol table.

Reviewed-on: https://go-review.googlesource.com/68310

- Make-lang.in (GO_OBJS): Add go/names.o.

1927232 compiler: centralize all symbol name handling
gcc/go/ChangeLog | 4 +
gcc/go/Make-lang.in | 1 +
gcc/go/gofrontend/MERGE | 2 +-
gcc/go/gofrontend/escape.cc | 2 +-
gcc/go/gofrontend/expressions.cc | 56 +--
gcc/go/gofrontend/gogo.cc | 201 ++--------
gcc/go/gofrontend/gogo.h | 122 +++++-
gcc/go/gofrontend/names.cc | 825 +++++++++++++++++++++++++++++++++++++++
gcc/go/gofrontend/types.cc | 616 +++--------------------------
gcc/go/gofrontend/types.h | 122 +++++-
10 files changed, 1145 insertions(+), 806 deletions(-)

Upstream: gcc.gnu.org


  • Share