OSDN Git Service

Use backend interface for variables.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Apr 2011 04:23:00 +0000 (04:23 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Apr 2011 04:23:00 +0000 (04:23 +0000)
commitfe2f84cff2c05d196407fbc744046d4aeeeb5b08
treefcc6b62b2ebb24bc22dd9b8f2c00e47b06854246
parenta1d7d78660e5d89e5b83f3254c26a3efd590a190
Use backend interface for variables.

* go-gcc.cc: Include "go-c.h".
(class Bvariable): Define.
(Gcc_backend::init_statement): New function.
(Gcc_backend::global_variable): New function.
(Gcc_backend::global_variable_set_init): New function.
(Gcc_backend::local_variable): New function.
(Gcc_backend::parameter_variable): New function.
(tree_to_type, var_to_tree): New functions.
* Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
* (go/gogo-tree.o): Depend on go/gofrontend/backend.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172693 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/expressions.cc
gcc/go/gofrontend/gogo-tree.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/statements.cc