This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r242726 - in /trunk/gcc/go: ChangeLog Make-lang...


Author: ian
Date: Tue Nov 22 22:28:05 2016
New Revision: 242726

URL: https://gcc.gnu.org/viewcvs?rev=242726&root=gcc&view=rev
Log:
    compiler: relocate ID encoding utilities to gofrontend
    
    Relocate the code that encodes/sanitizes identifiers to make them
    assembler-friendly, moving it from the back end to the front end; the
    decisions about when to encode an identifier and the calls to the
    encoding helpers now take place entirely in gofrontend.
    
    Reviewed-on: https://go-review.googlesource.com/33424

	* go-gcc.cc (char_needs_encoding): Remove.
	(needs_encoding, fetch_utf8_char, encode_id): Remove.
	(Gcc_backend::global_variable): Add asm_name parameter.  Don't
	compute asm_name here.
	(Gcc_backend::implicit_variable): Likewise.
	(Gcc_backend::implicit_variable_reference): Likewise.
	(Gcc_backend::immutable_struct): Likewise.
	(Gcc_backend::immutable_struct_reference): Likewise.
	* Make-lang.in (GO_OBJS): Add go/go-encode-id.o.

Added:
    trunk/gcc/go/gofrontend/go-encode-id.cc
    trunk/gcc/go/gofrontend/go-encode-id.h
Modified:
    trunk/gcc/go/ChangeLog
    trunk/gcc/go/Make-lang.in
    trunk/gcc/go/go-gcc.cc
    trunk/gcc/go/gofrontend/MERGE
    trunk/gcc/go/gofrontend/backend.h
    trunk/gcc/go/gofrontend/expressions.cc
    trunk/gcc/go/gofrontend/gogo.cc
    trunk/gcc/go/gofrontend/types.cc


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]