go-gcc.cc (Gcc_backend::type_size): Return 0 for void_type_node.
authorIan Lance Taylor <iant@golang.org>
Fri, 2 Feb 2018 15:19:44 +0000 (15:19 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 2 Feb 2018 15:19:44 +0000 (15:19 +0000)
commitc2a0fe5690900ec4534eab5afe61dd0d63b8e797
tree37dde9cfd8e1e3b89f35af1120912a2718521e1c
parent584d9d585bf041ec45fa1a8c2c4e30f015b29f1a
go-gcc.cc (Gcc_backend::type_size): Return 0 for void_type_node.

* 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.

From-SVN: r257334
gcc/go/ChangeLog
gcc/go/go-gcc.cc