Fix bug with multiple results returning structs with invalid sizes.
commitf16348a4bd142258cc1ce31ab8450308b6d8b234
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 May 2011 22:34:56 +0000 (13 22:34 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 May 2011 22:34:56 +0000 (13 22:34 +0000)
tree43dee658f4fbca50013d2e10f226b4a588179418
parent92b59f10ec8de0696fabb578c47e71c1ff5d34e6
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173742 138bc75d-0d04-0410-961f-82ee72b054a4
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