re PR go/64836 (go.test/test/fixedbugs/issue4348.go FAILs)
authorIan Lance Taylor <iant@google.com>
Tue, 3 Feb 2015 03:33:21 +0000 (03:33 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 3 Feb 2015 03:33:21 +0000 (03:33 +0000)
commit18fbd1ecf1440151236c388933b1541784f4f8c2
tree78fb832e42f96e31bd518c22227ffe0aaa2eb0eb
parent879887f1d250f677eb22d9aec6714ce131fd995b
re PR go/64836 (go.test/test/fixedbugs/issue4348.go FAILs)

PR go/64836
PR go/64838

compiler: Use int64_t for backend type size and alignment.

Fixes 32-bit host 64-bit target cross-compilation.

* go-gcc.cc (Gcc_backend::type_size): Change return type to
int64_t.
(Gcc_backend::type_alignment): Likewise.
(Gcc_backend::type_field_alignment): Likewise.
(Gcc_backend::type_field_offset): Likewise.
(Gcc_backend::implicit_variable): Change alignment parameter type
to int64_t.

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