Fix bug with multiple results returning structs with invalid sizes.
authorIan Lance Taylor <iant@google.com>
Fri, 13 May 2011 22:34:56 +0000 (22:34 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 13 May 2011 22:34:56 +0000 (22:34 +0000)
commit26793fb5fd2d9316980e88f595d71b006542654a
tree43dee658f4fbca50013d2e10f226b4a588179418
parentb8f2ad7cc540211400258e4e461a6b760ec44d09
Fix bug with multiple results returning structs with invalid sizes.

* go-gcc.cc (Gcc_backend::function_type): When building a struct
for multiple results, check that all fields types have a size.
(Gcc_backend::placeholder_pointer_type): Permit name to be empty.

From-SVN: r173742
gcc/go/ChangeLog
gcc/go/go-gcc.cc
gcc/go/gofrontend/backend.h
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/types.cc
gcc/go/gofrontend/types.h