* go-gcc.cc (Gcc_backend::type_size): Return 0 for
commita6b8ac98d753ad2ea13f2dcee35e2236e79a766f
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Feb 2018 15:19:44 +0000 (2 15:19 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Feb 2018 15:19:44 +0000 (2 15:19 +0000)
tree37dde9cfd8e1e3b89f35af1120912a2718521e1c
parent92f2a453baa16914e81d5d49dcc1868fe5ae7faa
* go-gcc.cc (Gcc_backend::type_size): Return 0 for
void_type_node.
(Gcc_backend::convert_expression): Don't convert if the type of
expr_tree is void_type_node.
(Gcc_backend::array_index_expression): Don't index if the type of
the array expression is void_type_node.
(Gcc_backend::init_statement): Don't initialize if the type of the
initializer expression is void_type_node.
(Gcc_backend::assignment_statement): Don't assign if the type of
either the left or right hand side is void_type_node.
(Gcc_backend::temporary_variable): Don't initialize if the type of
the initializer expression is void_type_node.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257334 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/ChangeLog
gcc/go/go-gcc.cc