OSDN Git Service

Use backend interface for function types.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Apr 2011 17:21:28 +0000 (17:21 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Apr 2011 17:21:28 +0000 (17:21 +0000)
commita59bc27b396d46757e6f4ceae4d1bd1e438d610c
treef38009e3762666720c9319813b80afdda98236a5
parent6254cf1d17bfe0434791dc1faf4a7b9ef997144f
Use backend interface for function types.
Drop type_tree() functions for Float_type and Complex_type.
Don't define builtin functions until gogo is created.

* go-gcc.cc (Gcc_backend::error_type): Implement.
(Gcc_backend::string_type): Remove.
(Gcc_backend::function_type): Change signature and implement.
(Gcc_backend::struct_type): Change signature.
(Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
(Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
(Gcc_backend::pointer_type): Check for error.
* Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172932 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/ChangeLog
gcc/go/Make-lang.in
gcc/go/go-gcc.cc
gcc/go/gofrontend/backend.h
gcc/go/gofrontend/go.cc
gcc/go/gofrontend/gogo-tree.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/types.cc
gcc/go/gofrontend/types.h