]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/go/go-gcc.cc
go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized, add a VIEW_CONVERT_E...
authorIan Lance Taylor <iant@google.com>
Tue, 22 Dec 2015 00:10:07 +0000 (00:10 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 22 Dec 2015 00:10:07 +0000 (00:10 +0000)
commit8fd41e922d2568d85af160795ff825c0423ee363
tree18fba706531f0869a76fad9429712afb706dade7
parentbf507c789e1aa34ce1c2bd31ccc6f39e7d8cd972
go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized, add a VIEW_CONVERT_EXPR to the tree.

* go-gcc.cc (Gcc_backend::global_variable): If type is zero-sized,
add a VIEW_CONVERT_EXPR to the tree.
(Gcc_backend::global_variable_set_init): Remove any
VIEW_CONVERT_EXPR.
(Gcc_backend::write_global_definitions): Likewise.

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